[Linux-disciples] echo

Stephen R Laniel steve at laniels.org
Tue Jan 10 10:58:51 EST 2006


Is it just me, or is this odd?

(10:57) slaniel at TheloniousMonk:~$ echo "some \"stuff\""
some "stuff"
(10:57) slaniel at TheloniousMonk:~$ echo 'some \'stuff\''
>

Shouldn't the quoting behavior be identical? I would think
the shell would do a first pass over either line, strip off
the single quotes, convert the escaped inner quotes into
literal quotes, and echo. No?

-- 
Stephen R. Laniel
steve at laniels.org
Cell: +(617) 308-5571
http://laniels.org/
PGP key: http://laniels.org/slaniel.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20060110/3c082df6/attachment.pgp


More information about the Linux-disciples mailing list