Closed 1buran closed 6 months ago
The interpreter I use is https://github.com/mvdan/sh
Which should support this... I'll investigate.
I managed to get your example working with the following:
declare -A demo=()
demo["main"]="Main demo"
demo["json-min"]="JSON min"
demo["load-session"]="Load session"
for i in ${!demo[@]}; do
echo "$i-> ${demo[$i]}"
done
If that isn't sufficient then I recommend raising an issue on: https://github.com/mvdan/sh
So my mistake was in the array declaration, got it, now it works, thanks!
Great! Thanks for reporting back!
Hello!
Does the tool support associative arrays?
I tried to define a task with arrays something like this one:
output of
xc
: