A slight fix for the argument handler, doesn't really affect zpac in its current state.

This commit is contained in:
Jack L. Frost 2015-02-01 17:27:39 +03:00
parent 8e575157f7
commit b68c7c5949

8
zpac
View File

@ -139,13 +139,9 @@ args_norm() {
printf '%s\n' "${keys[@]}"
;;
*) printf '%s\n' "$1";;
esac
[[ "$2" && ! "$2" =~ ^- ]] && {
printf '%s\n' "$2"
shift
}
shift
done
}