Date: Thu, 08 Jan 2009 14:15:25 +0100 From: Jelte Jansen <jelte@NLnetLabs.nl> To: Damien Fleuriot <dam@c-mal.com> Cc: freebsd-current@freebsd.org Subject: Re: Bug or unwanted behaviour in echo ? Message-ID: <4965FC6D.5090403@NLnetLabs.nl> In-Reply-To: <57dc0bd10901080437y5f745b4ckf40b48a9d9d55ce8@mail.gmail.com> References: <57dc0bd10901080437y5f745b4ckf40b48a9d9d55ce8@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Damien Fleuriot wrote: > > After swapping characters around I realized that echo just interprets > $@ (which in our case is null). > that's your shell doing the replacement, not echo. With most most shells you can inhibit this behaviour by using single quotes. Escaping the @ should work in some cases too. $ echo "abc$@" abc $ echo 'abc$@' abc$@ Jelte -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkll/G0ACgkQ4nZCKsdOncUSSQCeJuQZi1h+TrKNyxpHmu6hjykO +mAAnjKGHk76zsyTwwaahKbFWHQvjf1E =wJHv -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4965FC6D.5090403>