Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

`[[ -n $VAR ]]` equal to `[[ $VAR ]]`?



Hi,

this is kind of a follow-up to 
http://www.zsh.org/mla/users/2011/msg00284.html .

Basically the solutions were `((+VAR))` for zsh and `[[ -n 
${VAR+stuff} ]]` for bash and zsh.

Now my question is, isn't `[[ -n $VAR ]]` equivalent to `[[ $VAR ]]`? 
(`[[ -n ${VAR+stuff} ]]` equivalent to `[[ ${VAR+stuff} ]]`)

Thorsten



Messages sorted by: Reverse Date, Date, Thread, Author