Fixing bash script bogosity - help?

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

On Tue, Apr 28, 2009 at 1:19 PM, Ignacio Vazquez-Abrams
<ivazqueznet at> 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[@]}" 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.


 martin.langhoff at
 martin at -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first

More information about the Devel mailing list