When running from a script execlineb does not use separated args

From: Joshua Haase <hahj87_at_gmail.com>
Date: Mon, 30 Jul 2018 22:44:36 -0500

Using a script fails when using with the headers:

    #!/bin/execlineb -W -S1

or

    #!/bin/execlineb -W -S 1

I guess it's because when the commands are executed, the second part is
treated as a single arg, so execlineb receives

execlineb '-W -S1' and thus fails to interpret that as options.


    $ execlineb '-W -S1' 'echo ${_at_}'
    execlineb: usage: execlineb [ -p | -P | -S nmin | -s nmin ] [ -q | -w | -W ] [ -c commandline ] script args
    $ execlineb '-W -S1' 'echo ${_at_}' pato
    execlineb: usage: execlineb [ -p | -P | -S nmin | -s nmin ] [ -q | -w | -W ] [ -c commandline ] script args

Should something be done about that problem?

Document that perk, maybe?
Received on Tue Jul 31 2018 - 03:44:36 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:38:49 UTC