Date: Wed, 03 Jan 2007 20:56:46 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Robert Huff <roberthuff@rcn.com> Cc: questions@freebsd.org Subject: Re: OT: stupid sh scripting question Message-ID: <459C188E.1090706@infracaninophile.co.uk> In-Reply-To: <17820.3343.799303.349686@jerusalem.litteratus.org> References: <17820.3343.799303.349686@jerusalem.litteratus.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?459C188E.1090706>