Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Jan 2007 12:33:33 -0800
From:      "Kevin Downey" <redchin@gmail.com>
To:        "Bill Moran" <wmoran@collaborativefusion.com>
Cc:        Robert Huff <roberthuff@rcn.com>, questions@freebsd.org
Subject:   Re: OT: stupid sh scripting question
Message-ID:  <1d3ed48c0701031233w6fd783e1yf4ea599403daf687@mail.gmail.com>
In-Reply-To: <20070103152632.fff6c0f8.wmoran@collaborativefusion.com>
References:  <17820.3343.799303.349686@jerusalem.litteratus.org> <20070103152632.fff6c0f8.wmoran@collaborativefusion.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 1/3/07, Bill Moran <wmoran@collaborativefusion.com> wrote:
> 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.
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
>
you need a space before the ']'

-- 
The biggest problem with communication is the illusion that it has occurred.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1d3ed48c0701031233w6fd783e1yf4ea599403daf687>