summaryrefslogtreecommitdiffstatshomepage
path: root/bash.md
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-10-10 08:38:55 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-10-10 08:38:55 +0300
commitdf43091737fa774ca8e2eeec0f004219d9238b28 (patch)
tree6958c9d84ca9735df56bd5d50a27fd763ece3499 /bash.md
parentmarkdown.md: update (diff)
downloadnotes-df43091737fa774ca8e2eeec0f004219d9238b28.tar.gz
notes-df43091737fa774ca8e2eeec0f004219d9238b28.zip
add bash.md
Diffstat (limited to 'bash.md')
-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 ('')