From owner-freebsd-questions@FreeBSD.ORG Wed Jan 3 21:36:58 2007 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4AE0416A403 for ; Wed, 3 Jan 2007 21:36:58 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.187.76.162]) by mx1.freebsd.org (Postfix) with ESMTP id BE9AB13C44C for ; Wed, 3 Jan 2007 21:36:57 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from [IPv6:::1] (localhost.infracaninophile.co.uk [IPv6:::1]) by smtp.infracaninophile.co.uk (8.13.8/8.13.8) with ESMTP id l03Kur8k035655; Wed, 3 Jan 2007 20:56:53 GMT (envelope-from m.seaman@infracaninophile.co.uk) Message-ID: <459C188E.1090706@infracaninophile.co.uk> Date: Wed, 03 Jan 2007 20:56:46 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 1.5.0.9 (X11/20061223) MIME-Version: 1.0 To: Robert Huff References: <17820.3343.799303.349686@jerusalem.litteratus.org> In-Reply-To: <17820.3343.799303.349686@jerusalem.litteratus.org> X-Enigmail-Version: 0.94.0.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig7DBB8279CCFDD86F751889CE" X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (smtp.infracaninophile.co.uk [IPv6:::1]); Wed, 03 Jan 2007 20:57:09 +0000 (GMT) X-Virus-Scanned: ClamAV 0.88.7/2411/Wed Jan 3 18:04:33 2007 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00, DKIM_POLICY_TESTING,NO_RELAYS autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on happy-idiot-talk.infracaninophile.co.uk Cc: questions@freebsd.org Subject: Re: OT: stupid sh scripting question 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: Wed, 03 Jan 2007 21:36:58 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig7DBB8279CCFDD86F751889CE Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Robert Huff wrote: > This is probably staring me in the face: >=20 > if [ ! -d "foo"]=20 Missing space ^ here. =20 ie: if [ ! -d "foo" ] then mkdir foo fi or perhaps more succinctly: [ -d "foo" ] || mkdir "foo" or best of all, maybe just: mkdir -p "foo" 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 --------------enig7DBB8279CCFDD86F751889CE 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.1 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFnBiV8Mjk52CukIwRCFedAJ9NP7ncKVikyakHcSZ5b0Bq+S1uFACgkaFC 0xmkh3qP7Pr43AQ5vJz16Uw= =xGw3 -----END PGP SIGNATURE----- --------------enig7DBB8279CCFDD86F751889CE--