-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
A:external-commandsIssues related to external commandsIssues related to external commandsA:parserIssues related to parsingIssues related to parsingcategory:bugSomething isn't workingSomething isn't workingpolishthis problem makes nu feel unpolishedthis problem makes nu feel unpolished
Description
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
nudoesn'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):
- OS: OSX
- Version 10.15.3
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A:external-commandsIssues related to external commandsIssues related to external commandsA:parserIssues related to parsingIssues related to parsingcategory:bugSomething isn't workingSomething isn't workingpolishthis problem makes nu feel unpolishedthis problem makes nu feel unpolished