Date: Wed, 12 Feb 2003 15:06:29 +0300 From: "Denis N. Peplin" <info@volginfo.ru> To: freebsd-questions@freebsd.org Subject: can't peform blankspace escape - sh command substitution bug or feature? Message-ID: <200302121506.29923.info@volginfo.ru>
next in thread | raw e-mail | index | archive | help
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 majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200302121506.29923.info>