Date: Mon, 25 May 2009 18:16:35 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Unga <unga888@yahoo.com> Cc: freebsd-questions@freebsd.org Subject: Re: How to say this in Bash? Message-ID: <4A1AD273.6030702@infracaninophile.co.uk> In-Reply-To: <141688.69137.qm@web57006.mail.re3.yahoo.com> References: <141688.69137.qm@web57006.mail.re3.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig67412096748B144064C5D174 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Unga wrote: > --- On Mon, 5/25/09, Matthew Seaman <m.seaman@infracaninophile.co.uk> w= rote: > Here is what happens in bash shell: > $ echo "${X}" > ${Z} > bash: ${Z}: ambiguous redirect So, what's the value of ${Z}? Unless that expands to something that could be a valid file name you'll get an error message of some sort. hint: add set -x somewhere towards the top of the script and it will print a lot of debug output as it runs. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enig67412096748B144064C5D174 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAkoa0nkACgkQ8Mjk52CukIy4+QCfUq3f1K+DNAAIJTD5bs1dyQ8y XEYAoJK8sFb5qOg8/vs5+PaDx8ujTD68 =WYH0 -----END PGP SIGNATURE----- --------------enig67412096748B144064C5D174--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A1AD273.6030702>