From owner-freebsd-questions@FreeBSD.ORG Wed Jan 3 20:59:30 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 8BE4116A412 for ; Wed, 3 Jan 2007 20:59:30 +0000 (UTC) (envelope-from redchin@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by mx1.freebsd.org (Postfix) with ESMTP id CD00013C46A for ; Wed, 3 Jan 2007 20:59:29 +0000 (UTC) (envelope-from redchin@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so4678460uge for ; Wed, 03 Jan 2007 12:59:28 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=pNfx/j471RoB2LdeuGneGciOLrpX3HRxfD55zHTatkVXWYmafjUno69R+9/lETom4lGTzONYrbaWOVTZYWIRNPIsfuBh/P41Jy7QolTK0OKn+cuiLKYyT9pNeajHgnF6s5JGbHRbSzxHXzH6grKpgf9nBfJRbIzTEV191dO5wXs= Received: by 10.82.111.8 with SMTP id j8mr1811667buc.1167856413311; Wed, 03 Jan 2007 12:33:33 -0800 (PST) Received: by 10.82.112.7 with HTTP; Wed, 3 Jan 2007 12:33:33 -0800 (PST) Message-ID: <1d3ed48c0701031233w6fd783e1yf4ea599403daf687@mail.gmail.com> Date: Wed, 3 Jan 2007 12:33:33 -0800 From: "Kevin Downey" To: "Bill Moran" In-Reply-To: <20070103152632.fff6c0f8.wmoran@collaborativefusion.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <17820.3343.799303.349686@jerusalem.litteratus.org> <20070103152632.fff6c0f8.wmoran@collaborativefusion.com> Cc: Robert Huff , 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:59:30 -0000 On 1/3/07, Bill Moran wrote: > 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. > _______________________________________________ > 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.