OT: stupid sh scripting question
redchin at gmail.com
Wed Jan 3 12:59:30 PST 2007
On 1/3/07, Bill Moran <wmoran at collaborativefusion.com> wrote:
> In response to Robert Huff <roberthuff at 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 at freebsd.org mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
you need a space before the ']'
The biggest problem with communication is the illusion that it has occurred.
More information about the freebsd-questions