dash/ash
dash/ash
Posted Oct 17, 2014 11:12 UTC (Fri) by mgedmin (subscriber, #34497)In reply to: dash/ash by Jandar
Parent article: Bash gets shellshocked
Thank you. I've been reading bash(1) and tearing my hair out, and the only syntax I discovered for appending an item to an array was
paths[${#paths[*]}]="$1"
Rewriting this to use +=() will make my scripts a bit saner.
Posted Oct 17, 2014 12:02 UTC (Fri)
by mathstuf (subscriber, #69389)
[Link]
dash/ash
Any reason path=( "$path[@]" "$1" ) wouldn't have worked?