Timeline for How to determine if a bash variable is empty?
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 31, 2012 at 19:21 | comment | added | Luca Borrione | single square brackets are ok in this case, please see serverfault.com/questions/52034/… | |
Feb 25, 2012 at 15:49 | comment | added | Dennis Williamson | If you're using Bash, you should use double square brackets. My previous comment was a simple statement of fact for those who might read your answer and be using a different shell. | |
Feb 25, 2012 at 13:03 | comment | added | Fedir RYKHTIK | The question was about bash. I'm using bash. Works well for me. What exactly You are speaking about ? | |
Feb 25, 2012 at 12:19 | comment | added | Dennis Williamson | Some shells do not accept the double equal sign. | |
Dec 9, 2011 at 15:15 | history | answered | Fedir RYKHTIK | CC BY-SA 3.0 |