Fixing bash script bogosity - help?

Martin Langhoff martin.langhoff at gmail.com
Tue Apr 28 07:37:15 EDT 2009


On Tue, Apr 28, 2009 at 1:19 PM, Ignacio Vazquez-Abrams
<ivazqueznet at gmail.com> wrote:
> Ah, I see now.
>
> Try this:
>
> bash -c 'touch "$@"' "${CMD[@]}"

Riiight, that works better... but

> Or in the case of the full script:
>
> bash -c "$ERL"' "$@"' "${ERL_COMMAND[@]}"

...it doesn't work for runuser -- which is the real target. Runuser
looks at the added params after -c and tries to parse them. There
doesn't seem to be any support for passing parameters.

hmmmmm.


m
-- 
 martin.langhoff at gmail.com
 martin at laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff



More information about the Devel mailing list