[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: test -n "${var+set}"?

From: Paul Eggert
Subject: Re: test -n "${var+set}"?
Date: 18 Feb 2004 00:51:36 -0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Derek Robert Price <address@hidden> writes:

> Just wondering what the logic behind all the constructs like, `test
> "${var+set} = set', was in recently generated configure scripts.

I suspect it's the shortest portable test for whether a shell variable
is set.  Can you think of a shorter?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]