You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When running an external, $ is always evaluated as an env var, so it must always be escaped. This perhaps applies to other special characters for the shell under which we execute externals.
To Reproduce
Compare
$ ^echo yes | awk '{ print $0 }'
to
$ ^echo yes | awk '{ print \$0 }'
yes
Expected behavior
I would expect one of two possible behaviours:
Since nu doesn't do environment variables at the moment, perhaps escaping would be unnecessary.
Similar to other shells, "..." would interpolate env vars and '...' would not.
Configuration (please complete the following information):
Activity
thegedge commentedon Apr 21, 2020
So this looks to be a parser problem. When I output the args for the first one:
Seems like the single quotes are being converted to double quotes. We should probably maintain quoting.