I've tried what follows and I still get " if: Expression Syntax ".
==== #!/bin/tcsh if [ -z "$2" ] ; then echo You have not set a file to be appended. exit 1 fi ==== Any ideas? ~ MET On Tuesday 05 November 2002 7:35 pm, Todd A. Jacobs wrote: > On Tue, 5 Nov 2002, MET wrote: > > if ( ! $2 ) then > > echo You must set a second file > > exit 1 > > fi > > Start by reading the bash manual at: > > http://www.gnu.org/manual/bash-2.05a/bashref.html > > But you can do a test expression like: > > if [[ -z $2 ]]; then > echo You must set a second file > exit 1 > fi -- redhat-list mailing list unsubscribe mailto:redhat-list-request@;redhat.com?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list