From owner-freebsd-questions@FreeBSD.ORG Mon May 25 17:16:49 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 972B3106568B for ; Mon, 25 May 2009 17:16:49 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 0BD9B8FC08 for ; Mon, 25 May 2009 17:16:48 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id n4PHGfUI090230; Mon, 25 May 2009 18:16:42 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.2 smtp.infracaninophile.co.uk n4PHGfUI090230 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1243271802; bh=i8AKZ6dUKTgBPVOhjIksXk4kwplzCFyeeHK36ENl/iU=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4A1AD273.6030702@infracaninophile.co.uk>|Date:=20M on,=2025=20May=202009=2018:16:35=20+0100|From:=20Matthew=20Seaman= 20|Organization:=20Infracaninophi le|User-Agent:=20Thunderbird=202.0.0.21=20(X11/20090420)|MIME-Vers ion:=201.0|To:=20Unga=20|CC:=20freebsd-question s@freebsd.org|Subject:=20Re:=20How=20to=20say=20this=20in=20Bash?| References:=20<141688.69137.qm@web57006.mail.re3.yahoo.com>|In-Rep ly-To:=20<141688.69137.qm@web57006.mail.re3.yahoo.com>|X-Enigmail- Version:=200.95.6|Content-Type:=20multipart/signed=3B=20micalg=3Dp gp-sha256=3B=0D=0A=20protocol=3D"application/pgp-signature"=3B=0D= 0A=20boundary=3D"------------enig67412096748B144064C5D174"; b=FNcTlrdvAcE1rogrBjO7/0Pjlo6K+QIf4SYXX1WsAjZFs0qdjoe3SzIvL+GiK/TBv 0T2GpUmAuN0b4AbcT157L3aE3jIXj3J6l+m4PwUpjDfPSHVwHDlGKEkHwD3MS5PwLh qYvz6sdV7+Ux0ZlJclvn4fUlFf2VN7AcUZol8Lg0= X-Authentication-Warning: happy-idiot-talk.infracaninophile.co.uk: Host localhost [IPv6:::1] claimed to be happy-idiot-talk.infracaninophile.co.uk Message-ID: <4A1AD273.6030702@infracaninophile.co.uk> Date: Mon, 25 May 2009 18:16:35 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.21 (X11/20090420) MIME-Version: 1.0 To: Unga References: <141688.69137.qm@web57006.mail.re3.yahoo.com> In-Reply-To: <141688.69137.qm@web57006.mail.re3.yahoo.com> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig67412096748B144064C5D174" X-Virus-Scanned: clamav-milter 0.95.1 at happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: How to say this in Bash? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 May 2009 17:16:50 -0000 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 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--