* Re: _arguments broken again
@ 2000-08-01 11:18 Sven Wischnowsky
0 siblings, 0 replies; 2+ messages in thread
From: Sven Wischnowsky @ 2000-08-01 11:18 UTC (permalink / raw)
To: zsh-workers
Andrej Borsenkow wrote:
> bor@itsrm2%
> /tools/src/zsh/configure --prefix=/tools --enable-zsh-debug --en-f-
> sTAB
> Completing
>
> The first parameter was entered explicitly; the second was completed
> from --en-z-d; third parameter cannot be completed. The same with zsh -f.
Oops. Messed up description for automatically generated option specs.
Bye
Sven
Index: Completion/Base/_arguments
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Base/_arguments,v
retrieving revision 1.29
diff -u -r1.29 _arguments
--- Completion/Base/_arguments 2000/08/01 07:18:43 1.29
+++ Completion/Base/_arguments 2000/08/01 11:18:27
@@ -87,9 +87,11 @@
done
# Then we walk through the descriptions plus a few builtin ones.
+ # The last one matches all options; the `special' description and action
+ # makes those options be completed without an argument description.
set -- "$@" '*=FILE*:file:_files' \
- '*=(DIR|PATH)*:directory:_files -/' '*: :'
+ '*=(DIR|PATH)*:directory:_files -/' '*: : '
while (( $# )); do
@@ -147,7 +149,7 @@
if (( $#tmp )); then
tmp=("${(@)tmp//[^a-zA-Z0-9-]}")
- if [[ -n "$descr" ]]; then
+ if [[ -n "$descr" && "$descr" != ': : ' ]]; then
cache=( "$cache[@]" "${(@)^tmp}${descr}" )
else
cache=( "$cache[@]" "$tmp[@]" )
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] 2+ messages in thread
* _arguments broken again
@ 2000-08-01 10:03 Andrej Borsenkow
0 siblings, 0 replies; 2+ messages in thread
From: Andrej Borsenkow @ 2000-08-01 10:03 UTC (permalink / raw)
To: ZSH workers mailing list
bor@itsrm2%
/tools/src/zsh/configure --prefix=/tools --enable-zsh-debug --en-f-
sTAB
Completing
The first parameter was entered explicitly; the second was completed
from --en-z-d; third parameter cannot be completed. The same with zsh -f.
-andrej
Have a nice DOS!
B >>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-08-01 11:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-01 11:18 _arguments broken again Sven Wischnowsky
-- strict thread matches above, loose matches on Subject: below --
2000-08-01 10:03 Andrej Borsenkow
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).