* PATCH: _find
@ 1999-04-23 11:43 Tanaka Akira
0 siblings, 0 replies; 3+ messages in thread
From: Tanaka Akira @ 1999-04-23 11:43 UTC (permalink / raw)
To: zsh-workers
Hi. I found a bug in Completion/User/_find with zsh-3.1.5-pws-15.
% ./Src/zsh -f
% fpath=(Completion/*(/))
% . Completion/Core/compinit
% find <TAB>
compset: too many arguments
...
*** Completion/User/_find- Fri Apr 23 20:33:31 1999
--- Completion/User/_find Fri Apr 23 20:33:36 1999
***************
*** 2,8 ****
local prev="$words[CURRENT-1]"
! if compset -N '-(ok|exec)' '\;' then
_normal
elif compset -P 1 -; then
compgen -s 'daystart {max,min,}depth follow noleaf version xdev \
--- 2,8 ----
local prev="$words[CURRENT-1]"
! if compset -N '-(ok|exec)' '\;'; then
_normal
elif compset -P 1 -; then
compgen -s 'daystart {max,min,}depth follow noleaf version xdev \
--
[Tanaka Akira]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: PATCH: _find
1999-04-23 12:01 Sven Wischnowsky
@ 1999-04-24 19:04 ` Tanaka Akira
0 siblings, 0 replies; 3+ messages in thread
From: Tanaka Akira @ 1999-04-24 19:04 UTC (permalink / raw)
To: zsh-workers
In article <199904231201.OAA02796@beta.informatik.hu-berlin.de>,
Sven Wischnowsky <wischnow@informatik.hu-berlin.de> writes:
> > Hi. I found a bug in Completion/User/_find with zsh-3.1.5-pws-15.
>
> Oops.
I found another problem about _find.
% zsh-3.1.5-pws-15 -f
% fpath=($PWD/Completion/*(/))
% . Completion/Core/compinit
% find <TAB>
/ ./ ../
Hmm... Completion candidates are not enough.
--- Completion/User/_find- Fri Apr 23 20:33:36 1999
+++ Completion/User/_find Sun Apr 25 03:55:15 1999
@@ -13,7 +13,7 @@
local ret=1
compgen -g '. ..' && ret=0
- _files -g '(-/)' && ret=0
+ _files -g '*(-/)' && ret=0
return ret
elif [[ "$prev" = -((a|c|)newer|fprint(|0|f)) ]]; then
--
[Tanaka Akira]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: PATCH: _find
@ 1999-04-23 12:01 Sven Wischnowsky
1999-04-24 19:04 ` Tanaka Akira
0 siblings, 1 reply; 3+ messages in thread
From: Sven Wischnowsky @ 1999-04-23 12:01 UTC (permalink / raw)
To: zsh-workers
Tanaka Akira wrote:
> Hi. I found a bug in Completion/User/_find with zsh-3.1.5-pws-15.
Oops.
But that made me look at the manual again and there I found a typo.
Bye
Sven
--- od/Zsh/compwid.yo Mon Apr 19 10:16:26 1999
+++ Doc/Zsh/compwid.yo Fri Apr 23 13:57:38 1999
@@ -530,7 +530,7 @@
xitem(tt(compset -s) var(number))
xitem(tt(compset -S) [ var(number) ] var(pattern))
xitem(tt(compset -n) var(begin) [ var(end) ])
-item(tt(compset -p) var(beg-pat) [ var(end-pat) ])(
+item(tt(compset -N) var(beg-pat) [ var(end-pat) ])(
This command simplifies modification of the special parameters,
while its return value allows tests on them to be carried out.
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1999-04-24 19:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-04-23 11:43 PATCH: _find Tanaka Akira
1999-04-23 12:01 Sven Wischnowsky
1999-04-24 19:04 ` Tanaka Akira
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).