X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=releasenotes%2Fnotes%2Fhandle-unbound-arrays-9a31a444687d18ce.yaml;fp=releasenotes%2Fnotes%2Fhandle-unbound-arrays-9a31a444687d18ce.yaml;h=1be44d82a98437fc7cc8ef479d8265104f4639a6;hb=d589c771dc75206bb2b6d592435c8316cffd29fb;hp=0000000000000000000000000000000000000000;hpb=b20fe1623e4297dcdbc8fdd7c690c4e1cee6a005;p=releng%2Fglobal-jjb.git diff --git a/releasenotes/notes/handle-unbound-arrays-9a31a444687d18ce.yaml b/releasenotes/notes/handle-unbound-arrays-9a31a444687d18ce.yaml new file mode 100644 index 00000000..1be44d82 --- /dev/null +++ b/releasenotes/notes/handle-unbound-arrays-9a31a444687d18ce.yaml @@ -0,0 +1,14 @@ +--- +fixes: + - | + Fix error with handling unbound arrays for search extensions, when using + `set -u`. The correct way of using this. + + .. code-block:: bash + + set -u + arr=() + echo "output: '${arr[@]}'" + bash: arr[@]: unbound variable + echo "output: '${arr[@]:-}'" + foo: ''