Hi,

        [I apologize for following up to this mail a second time;; I
        should not post before I have had coffee]

On Mon, 8 Sep 2003 03:48:37 -0500, Branden Robinson <[EMAIL PROTECTED]> said: 

> I do continue to think that:

> if [ -n "$var" ]

> is more readable than

> if [ "${var+set}" = "set" ]

> ...but I remain open to being directed to a section of the Policy
> manual that firmly establishes my wrongness on that front as well.
> :)

        As Nicolas François pointed out, the difference is between an
 empty, but set, variable, and an unset variable. (so, an empty $2
 means no recently configured version, an unset $2 means this is an
 ancient dpkg. Not that most people care for these distinctions
 anymore). 

        manoj
 glad to have reconstituted the logic behind the odd construct
-- 
Truth is the most valuable thing we have -- so let us economize
it. Mark Twain
Manoj Srivastava   <[EMAIL PROTECTED]>  <http://www.debian.org/%7Esrivasta/>
1024R/C7261095 print CB D9 F4 12 68 07 E4 05  CC 2D 27 12 1D F5 E8 6E
1024D/BF24424C print 4966 F272 D093 B493 410B  924B 21BA DABB BF24 424C


Reply via email to