From owner-freebsd-questions@FreeBSD.ORG Wed Jan 3 20:26:34 2007 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1D49116A501 for ; Wed, 3 Jan 2007 20:26:34 +0000 (UTC) (envelope-from wmoran@collaborativefusion.com) Received: from mx00.pub.collaborativefusion.com (mx00.pub.collaborativefusion.com [206.210.89.199]) by mx1.freebsd.org (Postfix) with ESMTP id C417513C461 for ; Wed, 3 Jan 2007 20:26:33 +0000 (UTC) (envelope-from wmoran@collaborativefusion.com) Received: from vanquish.pgh.priv.collaborativefusion.com (vanquish.pgh.priv.collaborativefusion.com [192.168.2.61]) (SSL: TLSv1/SSLv3,256bits,AES256-SHA) by wingspan with esmtp; Wed, 03 Jan 2007 15:26:33 -0500 id 00056447.459C1179.0000DC6B Date: Wed, 3 Jan 2007 15:26:32 -0500 From: Bill Moran To: Robert Huff 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> Organization: Collaborative Fusion X-Mailer: Sylpheed 2.3.0 (GTK+ 2.10.6; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: questions@freebsd.org Subject: Re: OT: stupid sh scripting question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Jan 2007 20:26:34 -0000 In response to Robert Huff : > > 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.