From df43091737fa774ca8e2eeec0f004219d9238b28 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 10 Oct 2016 08:38:55 +0300 Subject: add bash.md --- bash.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 bash.md 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 ('') -- cgit v1.2.3