From owner-freebsd-questions@FreeBSD.ORG Tue May 20 23:07:59 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 64F981065670 for ; Tue, 20 May 2008 23:07:59 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: from chen.org.nz (ip-58-28-152-174.static-xdsl.xnet.co.nz [58.28.152.174]) by mx1.freebsd.org (Postfix) with ESMTP id 209258FC1D for ; Tue, 20 May 2008 23:07:59 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: by chen.org.nz (Postfix, from userid 1000) id 4E93E28415; Wed, 21 May 2008 10:52:07 +1200 (NZST) Date: Wed, 21 May 2008 10:52:07 +1200 From: Jonathan Chen To: Paul Schmehl Message-ID: <20080520225207.GA52004@osiris.chen.org.nz> References: <83C71638D3A682FC1B026581@utd65257.utdallas.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83C71638D3A682FC1B026581@utd65257.utdallas.edu> User-Agent: Mutt/1.4.2.3i Cc: FreeBSD Questions Subject: Re: Shell scripting - suppressing and eliminating error messages 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: Tue, 20 May 2008 23:07:59 -0000 On Tue, May 20, 2008 at 05:36:26PM -0500, Paul Schmehl wrote: > I'm using the following construction in a pkg-deinstall script for a port I > maintain: > > if ( ${BATCH} ); then This should read: if [ -n "${BATCH}" ] ; then -- Jonathan Chen ---------------------------------------------------------------------- "Irrationality is the square root of all evil" - Douglas Hofstadter