SUBMITTED: bug/bad feature in command line parsing

echo ch(“mychan”)

gets expanded as
ch ( mychan )

so: run myscript -expression ch(“something”)

instead of passing ch(“something”) as one argument, it passes it as 4 args.

Is there a reason for that to happen?

while I can single quote ‘ch(“mychan”)’ to pass it as an argument, it becomes of course hard when you have variables inside it, and overall it seems a very annoying feature for anyone using touch to keep in mind (when you type certain keywords, things are going to happen to what you type - but not all the times!)

??
d

Yeah, that shouldn’t be breaking it up like that. Unless it is something not trivial to change, we should fix it soon. I love how crazy it gets sometimes with " ' '" syntax… :wink: