Re: [PATCH] Replace 'test "${var+set}" = set' with 'test -n "${var+set}"'
Paul Eggert <[email protected]>
| Newsgroups | gmane.comp.sysutils.autoconf.patches |
|---|---|
| Organization | UCLA Computer Science Department |
| Message-ID | <[email protected]> |
Eric Blake wrote:
> test ${var+y}
Hah! Here's something that's one byte shorter:
${var+:} [ ]
It may be clearer to write it more in the style you used:
[ ${var+y} ]
Both of these work with Solaris 10 /bin/sh.