Always include the '$', even in math expressions where bash doesn't
need it.
#echo "a:$a, b: $b"
gsu_error_txt[i]="$b"
eval $a=$i
#echo "a:$a, b: $b"
gsu_error_txt[i]="$b"
eval $a=$i
done << EOF
$gsu_errors
EOF
done << EOF
$gsu_errors
EOF
gsu_short_msg "Available commands:"
for i in $gsu_cmds; do
printf "$i"
gsu_short_msg "Available commands:"
for i in $gsu_cmds; do
printf "$i"
- count=$((count + 1))
- if test $((count % 4)) -eq 0; then
+ count=$(($count + 1))
+ if test $(($count % 4)) -eq 0; then