|
From: chuck c. <cc...@zi...> - 2001-11-02 06:50:49
|
Hmm...Kevin actually had 'sh -c "%s"' in the original code
I switched to '%s' and everything worked. And then I tried
'sh -c %s' and that worked. I was curious and tried
"sh -c '%s'" but that failed as well. So it definitely has something
to do with the quotes. In the bash man page I found the following:
Shell builtin commands return a status of 0 (true) if suc=AD
cessful, and non-zero (false) if an error occurs while
they execute. All builtins return an exit status of 2 to
indicate incorrect usage.
So I'm guessing maybe the shell is having issues quoting? I get a
return code of 2 whether I use a builtin or call a command.
chuck
On Fri, 02 Nov 2001 01:40:26 -0800
Phil Surette <phi...@ho...> wrote:
> Looks like we are each doing some of the same work.
> Hopefully we can merge our changes - I made a number
> of them.
>=20
> I haven't got a linux box to test with tonight; can
> you try wrapping the arguments with quotes?
>=20
> i.e. instead of '/bin/sh -c %s' use '/bin/sh -c "%s"'
>=20
|