Debian bug report logs - #908
[ -n $var ] always true
Package: bash; Reported by: rdr@legislate.com (Raul Miller); 27 days old.
Message received at debian-bugs:
From legislate.com!rdr Wed May 24 12:41:34 1995
Return-Path: <rdr@legislate.com>
Received: from pixar.com by mongo.pixar.com with smtp
(Smail3.1.28.1 #15) id m0sEMJC-0006HVC; Wed, 24 May 95 12:41 PDT
Received: from hydra.legislate.com ([192.77.155.4]) by pixar.com with SMTP id AA17451
(5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Wed, 24 May 1995 12:40:08 -0700
Received: by hydra.legislate.com
id m0sEIay-0004iXC
(Debian /\oo/\ Smail3.1.29.1 #29.31); Wed, 24 May 95 15:43 GMT
Message-Id: <m0sEIay-0004iXC@hydra.legislate.com>
Date: Wed, 24 May 95 15:43 GMT
From: rdr@legislate.com (Raul Miller)
To: debian-bugs@pixar.com
In-Reply-To: <m0sELwW-0007b0C@grus.cus.cam.ac.uk> (iwj10@thor.cam.ac.uk)
Subject: Re: Bug#908: [ -n $var ] always true
I made a goof in my problem report. The problem exists, but the
symptoms are not described properly.
test -z $var works
test -n $var doesn't work
[ -z $var ] doesn't work
[ -n $var ] doesn't work
The [ ] versions aren't always true -- they may fail with a "too many
arguments" error.
Raul
Acknowledgement sent to rdr@legislate.com (Raul Miller):
Extra info received and forwarded.
Full text available.
Information forwarded to debian-devel@pixar.com:
Bug#908; Package bash.
Full text available.
Message received at debian-bugs:
From legislate.com!rdr Wed May 24 12:15:57 1995
Return-Path: <rdr@legislate.com>
Received: from pixar.com by mongo.pixar.com with smtp
(Smail3.1.28.1 #15) id m0sELuO-0006HVC; Wed, 24 May 95 12:15 PDT
Received: from hydra.legislate.com ([192.77.155.4]) by pixar.com with SMTP id AA16693
(5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Wed, 24 May 1995 12:14:31 -0700
Received: by hydra.legislate.com
id m0sEICO-0004iXC
(Debian /\oo/\ Smail3.1.29.1 #29.31); Wed, 24 May 95 15:18 GMT
Message-Id: <m0sEICO-0004iXC@hydra.legislate.com>
Date: Wed, 24 May 95 15:18 GMT
From: rdr@legislate.com (Raul Miller)
To: debian-bugs@pixar.com
Subject: [ -n $var ] always true
Package: bash
Version: 1.14.3-2
[ -n $var ] is always true, and
[ -z $var ] is always false.
test -n $var works properly
test -z $var works properly
--
Raul Miller
Acknowledgement sent to rdr@legislate.com (Raul Miller):
New bug report received and forwarded.
Full text available.
Report forwarded to debian-devel@pixar.com:
Bug#908; Package bash.
Full text available.
Ian Jackson /
iwj10@thor.cam.ac.uk,
with the debian-bugs tracking mechanism