Timeline for How to determine if a bash variable is empty?
Current License: CC BY-SA 2.5
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 20, 2011 at 7:40 | comment | added | ktf | Will also fail in some shells if foo begins with a dash since it is interpreted as an option. E.g. on solaris ksh, zsh and bash are no problem, sh and /bin/test will fail | |
May 20, 2010 at 21:16 | comment | added | Brian | That will fail if foo contains only spaces | |
Jan 26, 2010 at 14:02 | history | answered | namewithoutwords | CC BY-SA 2.5 |