Fixing bash script bogosity - help?

Martin Langhoff martin.langhoff at
Tue Apr 28 06:38:55 EDT 2009

On Tue, Apr 28, 2009 at 12:03 PM, Ignacio Vazquez-Abrams
<ivazqueznet at> wrote:
> But if you're willing to let go of this futile quest to keep $CMD a
> string then you'll find that it can be done:

Your example doesn't work. I don't care about keeping $CMD as a
string, I think you are misunderstanding the problem. We need to build
it as a string to provide it as a single parameter value. This is
because we want to run the command with all properly escaped params
under runuser.


 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