|
From: Greg C. <chi...@co...> - 2005-10-06 17:54:24
|
On 2005-10-6 16:07 UTC, Dan Osborne wrote: > Greg wrote: > >>[snip discussion of replacement for system()] >> >>Perhaps, as an alternative, one could write a program that reads >>its arguments, changes "/c" to "-c", and passes the rest to a >>shell it invokes; and then set ComSpec to that program's name. >> >>I haven't tried this, and it seems silly, yet unintrusive; if it >>works, then it might be used even when the source of the calling >>program is unavailable. > > > But would the "quoting problem" still remain? I don't know of a quoting problem that can't be solved by placing the command in double quotes, e.g. sh -c "your commands here" but that's not to say there isn't one: I wouldn't mind seeing an example. Well, sh -c "echo "hello"" perhaps, but that's probably easy to work around. |