0
1
In a bash script I found the following but though it works I cannot understand its logic
REMOTESNAPS+=(["$FS"]=" $SNAP")
The statement above adds an element to the associative array REMOTESNAP
by defining which index "$FS
" must be used and by adding the second element "$SNAP
" to it.
I could not find an explanation for such smart way to build associative arrays nor the point in the manual of bash where it's explained or I can deduce it.
Can somebody expand this topic? It'll be really appreciated.
Thanks Choroba, I'll stick to the syntax shown above to avoid any weird bash behaviour, – user2984629 – 2014-02-25T12:50:37.140