hashbang launcher cannot parse quoted arguments
Issue #17
resolved
#!/usr/bin/env anduril
//$OPT --threads 10
//$OPT --pager 'cat -n'
#!/usr/bin/env anduril
//$OPT --threads 10
//$OPT --pager "cat -n"
both fail
#!/usr/bin/env anduril
//$OPT --threads 10
//$OPT --pager cat -n
runs, but skips the -n
option
Comments (2)
-
-
reporter - changed status to resolved
confirmed,
#!/usr/bin/env anduril //$OPT --threads 10 //$OPT --pipe "tee run.log" //$OPT --pipe "anduril-pager -s all"
works now with multiple pipes too. good work.
- Log in to comment
Fixed. Please confirm. --pager "cat -n" and --pager 'cat -n' are the correct forms.
BTW, there is no difference between hashbang launcher and "anduril run", If fact, in hashbang mode the script just inserts "run". This ensures that you always have the same functionality, and hashbang and //$comments are now official part of the language.