Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 May 1997 06:04:21 -0800 (AKDT)
From:      Steve Howe <un_x@anchorage.net>
To:        Zahemszky Gabor <zgabor@CoDe.hu>
Cc:        FreeBSD questions <freebsd-questions@FreeBSD.ORG>, wosch@apfel.de
Subject:   Re: test -f $shvar
Message-ID:  <Pine.BSF.3.95q.970505060135.2338B-100000@aak.anchorage.net>
In-Reply-To: <199705050827.KAA00520@CoDe.hu>

next in thread | previous in thread | raw e-mail | index | archive | help

> > The programmer must check if the variable `shvar' is
> > not empty. E.g.:

> >   test -n "$shvar" -a  -f "$shvar" 

> I don't know, why isn't it enough:
> test -f "$shvar"

> Gabor

  ^^^^^ shell genius! haha!

i get into trouble sometimes because i don't like to use
quotes more than necessary ...  thanks everyone ...
-------------------------------------------------------------------------




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95q.970505060135.2338B-100000>