summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--bash.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/bash.md b/bash.md
new file mode 100644
index 0000000..fbd851c
--- /dev/null
+++ b/bash.md
@@ -0,0 +1,12 @@
+GNU `bash`
+==========
+
+1. (Associative) arrays
+ * Yes:
+
+ func ${arr[@]+"${arr[@]}"}
+
+ * No:
+
+ func "${arr[@]}" # doesn't work with `nounset`
+ func "${arr[@]+"${arr[@]}"}" # doesn't work with ('')