I was expecting
excludes="${excludes:-( ${default_excludes[@]} )}"
to be an array if $excludes
is empty. Unfortunately the stuff after :-
is taken to be a string. Did I miss some syntax contortion, or do I have to use the clunky
if [ -z "${excludes:-}" ]
then
excludes=( "${default_excludes[@]}" )
fi
?
:-(
... – l0b0 May 9 '11 at 14:02