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
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:
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:
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