3 ms·
There should a dollar sign before hello, e.g.: bash [ -z $hello ] ...or is that a bashism that I'm not aware of? If so, that's just horrible. Personally, I
by wicket 12y ago
There should a dollar sign before hello, e.g.:
bash [ -z $hello ]
...or is that a bashism that I'm not aware of? If so, that's just horrible.
Personally, I prefer to write portable shell scripts. Entering "!posix test" into DuckDuckGo to obtain the man page for "test" yields far more meaningful information for the same problem.