On Tue, Nov 05, 2002 at 06:46:29PM -0500, MET wrote:
> Simply put, I'm trying to check if $2 is set.  Any ideas?
> 
>       if ( ! $2 ) then
>               echo You must set a second file
>               exit 1
>       fi
> 
> The above doesn't work reporting if expression error.  Any help would be
> greatly appreciated.

[ -z "$2" ] && echo "You screwed up" && exit 1

-- 
Hal Burgiss
 



-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@;redhat.com?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to