hashbang launcher cannot parse quoted arguments

Issue #17 resolved
Ville Rantanen created an issue
#!/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)

  1. Kristian Ovaska

    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.

  2. Ville Rantanen reporter

    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.

  3. Log in to comment