tosh
tosh copied to clipboard
Define variables on paste
Suggested here and elsewhere
Although fundamentally intractable (since variable names can contain spaces!), it might be sufficient to tokenise the lines and look for set _ to -- since we don't allow the word "to" inside variable names.
Detecting variable reporters is pretty much impossible, so that's never gonna happen.