Re: /etc/shells management
On Sun, 7 Sep 2003 11:58:03 -0500, Steve Langasek wrote:
> On Sun, Sep 07, 2003 at 06:08:06PM +0200, Thomas Hood wrote:
> > I have been using
> > if [ "$var" ]; then
> > fi
> > I hope that's kosher too; otherwise I have a few scripts to fix.
> In general, no. If the contents of $var are a test operator, you'll get
> a syntax error.
Not in a POSIX-compliant sh.
Michał Politowski -- firstname.lastname@example.org
Talking has been known to lead to communication if practised carelessly.