Shell scripting - suppressing and eliminating error messages
    Jonathan Chen 
    jonc at chen.org.nz
       
    Tue May 20 23:07:59 UTC 2008
    
    
  
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 at chen.org.nz>
----------------------------------------------------------------------
                        "Irrationality is the square root of all evil"
                                                  - Douglas Hofstadter
    
    
More information about the freebsd-questions
mailing list