New answers tagged array
4
votes
Accepted
Treat unset variables as an error when substituting (set -u) ignores array expansion
The manual states (emphasis mine):
‘-u’
Treat unset variables and parameters other than the special
parameters ‘@’ or ‘*’, or array variables subscripted with ‘@’
or ‘*\’, as an error when performing ...
Top 50 recent answers are included
Related Tags
array × 634bash × 422
shell-script × 176
shell × 60
awk × 53
zsh × 43
variable × 40
text-processing × 26
string × 26
linux × 24
scripting × 24
bash-array × 23
for × 21
function × 18
grep × 16
associative-array × 16
csv × 15
ksh × 15
sort × 13
arguments × 13
sed × 12
quoting × 12
jq × 11
parameter × 11
files × 10