zshrc: using FOO=${FOO:-default} instead of (( ${+FOO} )) || FOO=default
authorFrank Terbeck <ft@grml.org>
Sat, 2 Feb 2008 09:41:09 +0000 (10:41 +0100)
committerFrank Terbeck <ft@grml.org>
Sat, 2 Feb 2008 09:41:09 +0000 (10:41 +0100)
commit59af3d44e7f5d2b3b86451ac0e17103832c34f14
tree27899efa3d025b972d0d510ef3bc4c2c1c848a13
parent4d645bc030f904b4b7ca830dcb4e10851adb45ac
zshrc: using FOO=${FOO:-default} instead of (( ${+FOO} )) || FOO=default

This is more correct, IMHO.
The old way only sets the default if $FOO is unset; whereas the new way
sets the default if $FOO is unset *or* empty (which is certainly desirable,
if you think of variables like $PAGER).
etc/zsh/zshrc