Date: Wed, 3 Jan 2007 15:26:32 -0500 From: Bill Moran <wmoran@collaborativefusion.com> To: Robert Huff <roberthuff@rcn.com> Cc: questions@freebsd.org Subject: Re: OT: stupid sh scripting question Message-ID: <20070103152632.fff6c0f8.wmoran@collaborativefusion.com> 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
In response to Robert Huff <roberthuff@rcn.com>: > > This is probably staring me in the face: > > if [ ! -d "foo"] > then mkdir foo > fi > > gives me: > > [: missing ] > > Looking at rc.subr I see: > > if [ ! -d "$linkdir" ]; then > warn "$_me: the directory $linkdir does not exist." > return 1 > fi The ; after the ] ? -- Bill Moran Collaborative Fusion Inc.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070103152632.fff6c0f8.wmoran>