OT: stupid sh scripting question

Robert Huff roberthuff at rcn.com
Wed Jan 3 12:15:24 PST 2007


	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


					Robert Huff


More information about the freebsd-questions mailing list