mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-25 05:10:28 +02:00
work around ${(@P)1[3,-1]} not working as expected (14658)
This commit is contained in:
parent
849b7800af
commit
a594e4eb04
3 changed files with 7 additions and 2 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2001-06-01 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* 14658: Base/Utility/_arguments, Base/Utility/_values: correctly
|
||||
handle argument to -O option
|
||||
|
||||
2001-06-01 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 14651: Doc/Zsh/builtins.yo: add fix for 14597 in one other place.
|
||||
|
|
|
|||
|
|
@ -178,7 +178,7 @@ while [[ "$1" = -(O*|[CRWsw]) ]]; do
|
|||
case "$1" in
|
||||
-C) usecc=yes; shift ;;
|
||||
-O) subopts=( "${(@P)2}" ); shift 2 ;;
|
||||
-O*) subopts=( "${(@P)1[3,-1]}" ); shift ;;
|
||||
-O*) subopts=( "${(@P)${1[3,-1]}}" ); shift ;;
|
||||
-R) rawret=yes; shift;;
|
||||
-w) optarg=yes; shift;;
|
||||
-s) singopt=(-s); shift;;
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ while [[ "$1" = -(O*|C) ]]; do
|
|||
case "$1" in
|
||||
-C) usecc=yes; shift ;;
|
||||
-O) subopts=( "${(@P)2}" ); shift 2 ;;
|
||||
*) subopts=( "${(@P)1[3,-1]}" ); shift ;;
|
||||
*) subopts=( "${(@P)${1[3,-1]}}" ); shift ;;
|
||||
esac
|
||||
done
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue