I like the suggestion, but I would like to ask such an extra switch to cause /var to do two more things:
  • not lose the last single space of whatever is given [1];
  • not reduce any pair of double quotes ("") to $null.
Then, you can for example do "/var -n %x = $1" so that %x will end up with the exact same contents as $1, regardless of what $1 contained. Because of the three issues mentioned now, that is currently simply impossible (and the two above are impossible to solve with /set as well).

[1] Example: //var %x = a $+ $chr(32), %y = a $+ $chr(32) $+ $chr(32) | echo -ag $len(%x) $len(%y)


Saturn, QuakeNet staff