Why do [[ -z ]] and [[ -v ]] have different syntax? – unix.stackexchange.com 08:52 Posted by Unknown No Comments If I want to perform some commands given variables aren't set I'm using: if [[ -z "$a" || -z "$v" ]] then echo "a or b are not set" fi Yet the same syntax doesn't work with -v, I have to use: if ... from Hot Questions - Stack Exchange OnStackOverflow via Blogspot Share this Google Facebook Twitter More Digg Linkedin Stumbleupon Delicious Tumblr BufferApp Pocket Evernote Unknown Artikel TerkaitWould it confuse my readers to give two siblings nicknames that can be abbreviations of the same name? – writing.stackexchange.comCan I print value of variable on PCB into String feature in Altium Designer – electronics.stackexchange.comWhy didn't the Wakandans destroy the alien ships? – movies.stackexchange.comAfter two UK visa refusals, can I apply again? – travel.stackexchange.comElectronic opt-out, correcting miscommunication, and additional questions answered about the 2018 ToS update – meta.stackexchange.comDoes Congress not have to approve the US withdrawal from the Iran deal? – politics.stackexchange.com
0 Comment to "Why do [[ -z ]] and [[ -v ]] have different syntax? – unix.stackexchange.com"
Post a Comment