diff options
author | Lucía Andrea Illanes Albornoz <lucia@luciaillanes.de> | 2023-02-22 04:43:15 +0100 |
---|---|---|
committer | Lucía Andrea Illanes Albornoz <lucia@luciaillanes.de> | 2023-02-22 04:44:29 +0100 |
commit | 7b6d2fd9a9ffd0caf45602a96cf09ac73ab85cf4 (patch) | |
tree | 82a98f485189d0d4df51f8e7f4c9eed7f2e3deb2 | |
parent | ef80776d27dbc3914b43e6437c19dc2db4fbfbdc (diff) | |
download | midipix_build-7b6d2fd9a9ffd0caf45602a96cf09ac73ab85cf4.tar.bz2 midipix_build-7b6d2fd9a9ffd0caf45602a96cf09ac73ab85cf4.tar.xz |
subr.ex/ex_init.subr:ex_init_getopts(): reset OPTIND to 0 before calling getopts.
-rw-r--r-- | subr.ex/ex_init.subr | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/subr.ex/ex_init.subr b/subr.ex/ex_init.subr index 80dda794..13e0edd3 100644 --- a/subr.ex/ex_init.subr +++ b/subr.ex/ex_init.subr @@ -128,6 +128,7 @@ ex_init_getopts() { ;; esac; + OPTIND=0; if getopts "${_eig_optstring}" _eig_opt; then "${_eig_fn}" opt "${_eig_rstatus}" "${_eig_opt}" "${OPTARG:-}" "${@}"; _eig_fn_rc="${?}"; |