[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Success (mostly) with the testsuite
From: |
Lars J. Aas |
Subject: |
Re: Success (mostly) with the testsuite |
Date: |
Fri, 20 Oct 2000 19:04:11 +0200 |
User-agent: |
Mutt/1.2.5i |
On Fri, Oct 20, 2000 at 06:58:36PM +0200, Lars J. Aas wrote:
: Anyways, what would be really cool is to find a LHS expansion that would
: either expand to "set" or to "unset" depending on whether the variable was
: set or not. I haven't been able to think of one, though. Does anyone
: know it that could be done?
:
: This trick is kind of cool, but it's the inverse of what I originally
: looked for:
:
: if test ${VAR+un}set != unset; then
: # VAR is set
: fi
:
: and
:
: if test ${VAR+un}set != set; then
: # VAR is unset
: fi
I'm rambling - it doesn't work... This works, though, I think :-/
if test not_${VAR+un}set = not_unset; then
# $VAR is set
fi
Lars J
- Re: Success (mostly) with the testsuite, (continued)
- Re: Success (mostly) with the testsuite, Alexandre Oliva, 2000/10/26
- Re: Success (mostly) with the testsuite, Alexandre Oliva, 2000/10/26
- Re: Success (mostly) with the testsuite, Akim Demaille, 2000/10/27
- Re: Success (mostly) with the testsuite, Alexandre Oliva, 2000/10/27
- Re: Success (mostly) with the testsuite, Akim Demaille, 2000/10/30
- Re: Success (mostly) with the testsuite, Akim Demaille, 2000/10/26
- Re: Success (mostly) with the testsuite, David Morgan, 2000/10/26
- Re: Success (mostly) with the testsuite, Akim Demaille, 2000/10/26
RE: Success (mostly) with the testsuite, Bernard Dautrevaux, 2000/10/20