Handle unbound arrays correctly
[releng/global-jjb.git] / releasenotes / notes / handle-unbound-arrays-9a31a444687d18ce.yaml
diff --git a/releasenotes/notes/handle-unbound-arrays-9a31a444687d18ce.yaml b/releasenotes/notes/handle-unbound-arrays-9a31a444687d18ce.yaml
new file mode 100644 (file)
index 0000000..1be44d8
--- /dev/null
@@ -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: ''