How to test if a parameter has been set to the empty string? – unix.stackexchange.com

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

Artikel Terkait

0 Comment to "How to test if a parameter has been set to the empty string? – unix.stackexchange.com"