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.
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.