OT: stupid sh scripting question

Chuck Swiger cswiger at mac.com
Wed Jan 3 12:52:11 PST 2007


On Jan 3, 2007, at 3:07 PM, Robert Huff wrote:
> if [ ! -d "foo"]
> 	then mkdir foo
> fi

You want a space before the "]" and a semicolon after it.

-- 
-Chuck



More information about the freebsd-questions mailing list