Hi!

I try to escape blankspace in filenames by using backslash
First, i'm test sed expression:
$ sed 's/ /\\ /g'
long file name
long\ file\ name

this ok.

second, include this sed expression in sh command substitution:
$ filename=`echo "long file name" | sed 's/ /\\ /g'` ; echo $filename
long file name

with csh all ok, but with Bourne not. is this bug or feature?
i'm searched in google and only found different instructions about
escaping variables by hand...

Thanks!

P.S. Sorry for possible offtopic.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to