summaryrefslogtreecommitdiffstatshomepage
path: root/bash.md
blob: fbd851c8e4ec683783d9877090984d0502571d40 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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 ('')