projects
/
grml-etc-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from:
59af3d4
)
zshrc: using FOO=${FOO:-default} instead of (( ${+FOO} )) || FOO=default
author
Frank Terbeck
<ft@grml.org>
Sat, 2 Feb 2008 09:41:09 +0000
(10:41 +0100)
committer
Frank 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