1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-21 00:01:26 +01:00

21846: _chmod was too greedy with initial arguments

This commit is contained in:
Peter Stephenson 2005-10-07 09:30:56 +00:00
parent 5ee38b811e
commit 1eaa7fee0d
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-10-07 Peter Stephenson <pws@csr.com>
* Stephen Rüger: 21846: Completion/Unix/Command/_chmod: too
greedy looking for r, w, x, s, t in initial arguments to chmod.
2005-10-04 Bart Schaefer <schaefer@zsh.org>
* 21822 (annotated): Src/Zle/complist.c: prevent a long-standing

View file

@ -67,7 +67,7 @@ case "$state" in
local spec who op priv
local -a specs
for spec in ${(s:,:)words[2]}; do
if [[ ${spec#*[+-=]} != [rwxst]* ]]; then
if [[ ${spec#*[+-=]} != [rwxst]## ]]; then
_files && ret=0
return ret
fi