Comment 23 for bug 134692

Revision history for this message
Daniel Hahler (blueyed) wrote :

yop, please note that {$NICE:-10} (which I've used in most places in my patches) is actually a typo/wrong!
${NICE:-10} is correct (and Kees has fixed it already).

"echo ${FOO:-10}" results in 10, if $FOO is not set, if you want to get "-10" as default, you would actually have to use ${FOO:--10}. The ":-" appears to be the syntax for "default".

So, this seems to be fine - except for the typo.. ;)