* completion bug: chmod +rX
@ 2005-10-06 21:29 Ignacy Gawedzki
2005-10-06 23:07 ` Stephen Rueger
0 siblings, 1 reply; 3+ messages in thread
From: Ignacy Gawedzki @ 2005-10-06 21:29 UTC (permalink / raw)
To: zsh-workers
Hi,
I tried to dive into completion code, but must admit that it requires far more
time to comprehend than I initially supposed. So I would like to report a
problem that's quite annoying sometimes: "chmod a+rX" doesn't complete
properly (it doesn't offer _any_ file). From what I managed to see, it has
something to do with the way _files or maybe _path_files works.
Has anyone any idea or suggestion?
--
Everything is more fun naked except cooking with grease.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: completion bug: chmod +rX
2005-10-06 21:29 completion bug: chmod +rX Ignacy Gawedzki
@ 2005-10-06 23:07 ` Stephen Rueger
2005-10-07 12:36 ` completion bug: chmod a+rX Ignacy Gawedzki
0 siblings, 1 reply; 3+ messages in thread
From: Stephen Rueger @ 2005-10-06 23:07 UTC (permalink / raw)
To: zsh-workers
On Thu, Oct 06, 2005 at 11:29:02PM +0200, Ignacy Gawedzki wrote:
> Has anyone any idea or suggestion?
This patch should do.
--- Completion/Unix/Command/_chmod.old 2005-10-07 00:46:41.000000000 +0200
+++ Completion/Unix/Command/_chmod 2005-10-07 00:49:34.000000000 +0200
@@ -67,7 +67,7 @@
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
--
Stephen Rüger
stephen.rueger@rechnerpost.org
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: completion bug: chmod a+rX
2005-10-06 23:07 ` Stephen Rueger
@ 2005-10-07 12:36 ` Ignacy Gawedzki
0 siblings, 0 replies; 3+ messages in thread
From: Ignacy Gawedzki @ 2005-10-07 12:36 UTC (permalink / raw)
To: zsh-workers
On Fri, Oct 07, 2005 at 01:07:55AM +0200, thus spake Stephen Rueger:
> On Thu, Oct 06, 2005 at 11:29:02PM +0200, Ignacy Gawedzki wrote:
>
> > Has anyone any idea or suggestion?
>
> This patch should do.
It does, thank you very much. =)
--
Information wants to be beer, or something like that.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-10-07 12:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-06 21:29 completion bug: chmod +rX Ignacy Gawedzki
2005-10-06 23:07 ` Stephen Rueger
2005-10-07 12:36 ` completion bug: chmod a+rX Ignacy Gawedzki
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).