echo "$help"
return
elif [[ $1 == -[0-9]* ]]; then
- errors={$1#-}
+ errors=${1#-}
shift
elif [[ $1 == -- ]]; then
shift
done
fi
glob="$c[0-9]*"
- file=($glob); file="${file[0]}"; [[ $glob != $file ]] || file=
+ file=($glob); [[ $file != "$glob" ]] || file=
if $log; then
out=append
if [[ $file ]]; then
- i=${file#$c}
+ i="${file#$c}"
if (( i < errors )); then
new_file=$c$((i+1))
mv $file $new_file
$out $file <<<"${output[@]}"
$out $file
fi
- return 1
+ return 0
fi
if [[ $file ]]; then
rm -f $file