Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 May 2008 10:52:07 +1200
From:      Jonathan Chen <jonc@chen.org.nz>
To:        Paul Schmehl <pauls@utdallas.edu>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Shell scripting - suppressing and eliminating error messages
Message-ID:  <20080520225207.GA52004@osiris.chen.org.nz>
In-Reply-To: <83C71638D3A682FC1B026581@utd65257.utdallas.edu>
References:  <83C71638D3A682FC1B026581@utd65257.utdallas.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <jonc@chen.org.nz>
----------------------------------------------------------------------
                        "Irrationality is the square root of all evil"
                                                  - Douglas Hofstadter



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080520225207.GA52004>