1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-15 13:34:18 +01:00

36604: fix getopts+shift calculation

This commit is contained in:
Barton E. Schaefer 2015-09-23 23:16:38 -07:00
parent 1b5987cdb1
commit 8d5c0c7760
2 changed files with 5 additions and 1 deletions

@ -1,3 +1,7 @@
2015-09-23 Barton E. Schaefer <schaefer@zsh.org>
* 36604: Functions/Misc/zrecompile: fix getopts+shift calculation
2015-09-23 Daniel Shahaf <d.s@daniel.shahaf.name>
* unposted: Src/Zle/compmatch.c: Followup to 36586: Change C99

@ -52,7 +52,7 @@ while getopts ":tqp" opt; do
fi
esac
done
shift OPTIND-${#tmp:-1}
shift OPTIND-${#tmp}-1
if [[ -n $check ]]; then
ret=1