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)
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).


No differences found