On Tue, Apr 28, 2009 at 9:27 AM, Ignacio Vazquez-Abrams <ivazquez...@gmail.com> wrote: >> # in the script, the CMD is built up as a string >> CMD="touch $@" > > http://mywiki.wooledge.org/BashFAQ/050
That repeats what we know already. The thing is that we are building the command as a string for runuser, which wants it as a parameter. It is an interesting question, I think. Can you make my sample script work, while still handling $CMD as a string? Some sample input for the challenge: $ ./sample.sh ./sample.sh "this is file one" "this is file two" "file with doublequotes \" in it" cheers, m -- martin.langh...@gmail.com mar...@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 _______________________________________________ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel