Re: Shell scripting question regarding quoting

2005-05-18 Thread Peter
bash: foobar=op\\q; echo ${foobar///} you don't need sed for this. foobar can be $1 etc (write ${1//...}) Peter = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message body, e.g., run the

Re: Shell scripting question regarding quoting

2005-05-18 Thread Ehud Karni
On Tue, 17 May 2005 12:27:55 +0300, Shachar Shemesh [EMAIL PROTECTED] wrote: I have a bourne shell script that defines a function dosomething. Dosomething receives a string, and passes is along to a subshell for processing (currently by doing sh -c $cmdline). The problem is that when I do:

Shell scripting question regarding quoting

2005-05-17 Thread Shachar Shemesh
Hi all, I have a bourne shell script that defines a function dosomething. Dosomething receives a string, and passes is along to a subshell for processing (currently by doing sh -c $cmdline). The problem is that when I do: dosomething a\\b $cmdline gets: a\b (which is ok) but the subshell gets:

Re: Shell scripting question regarding quoting

2005-05-17 Thread Amos Shapira
On 5/17/05, Shachar Shemesh [EMAIL PROTECTED] wrote: Hi all, I have a bourne shell script that defines a function dosomething. Dosomething receives a string, and passes is along to a subshell for processing (currently by doing sh -c $cmdline). The problem is that when I do: dosomething