How to test if a parameter has been set to the empty string? – unix.stackexchange.com 15:07 Posted by Unknown No Comments I want to test if a parameter is "". When the parameter is not set, the test should fail. Why does the following not succeed? $ unset aa $ if [ ${aa}=="" ]; then echo yes; else echo no; fi yes ... from Hot Questions - Stack Exchange OnStackOverflow via Blogspot Share this Google Facebook Twitter More Digg Linkedin Stumbleupon Delicious Tumblr BufferApp Pocket Evernote Unknown Artikel TerkaitWhat is this tiny metal door? – diy.stackexchange.comCan Prestidigitation "Clean" Salt Water? – rpg.stackexchange.comWhat do I need to do to have my raspberry pi host a webpage with dials indicating CPU temp, CPU load, etc., in real time? – superuser.comExponential-ish number sequence – codegolf.stackexchange.comDoes everyone who is doing a PhD has to dabble in philosophy to a certain extent? – academia.stackexchange.comWhat is this sort of abstract rainbow? – physics.stackexchange.com
0 Comment to "How to test if a parameter has been set to the empty string? – unix.stackexchange.com"
Post a Comment