1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-06-13 04:56:30 +02:00

-[12n] options don't get arguments (15615)

This commit is contained in:
Sven Wischnowsky 2001-08-13 10:57:43 +00:00
parent 17ca9022af
commit d679322cf9
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2001-08-08 Sven Wischnowsky <wischnow@zsh.org>
* 15615: Completion/Unix/Type/_path_files: -[12n] options don't
get arguments
2001-08-12 Bart Schaefer <schaefer@zsh.org>
* Peter Breitenlohner: 14956: Makefile.in, Doc/Makefile.in,

View File

@ -17,7 +17,7 @@ exppaths=()
zparseopts -a mopts \
'P:=pfx' 'S:=pfxsfx' 'q=pfxsfx' 'r:=pfxsfx' 'R:=pfxsfx' \
'W:=prepaths' 'F:=ignore' 'M+:=matcher' \
J+: V+: X+: 1: 2: n: 'f=tmp1' '/=tmp1' 'g+:-=tmp1'
J+: V+: X+: 1 2 n 'f=tmp1' '/=tmp1' 'g+:-=tmp1'
sopt="-${(@j::M)${(@)tmp1#-}#?}"
(( $tmp1[(I)-[/g]*] )) && haspats=yes