* PATCH: _telnet (was: Re: completion tricks)
@ 2001-03-20 9:46 Sven Wischnowsky
0 siblings, 0 replies; only message in thread
From: Sven Wischnowsky @ 2001-03-20 9:46 UTC (permalink / raw)
To: zsh-workers
[ moved to -workers ]
Adam Spiers wrote:
> ...
>
> Note to zsh-workers: it looks like completion within the -l option of
> telnet is broken.
Let me guess: your telnet doesn't understand the -\? option?
Mine doesn't and hence it didn't work for me either. The patch adds a
default for $_telnet_options containing only -l (my telnet also
understands -n and -d but if I add them Andrej complains because his
doesn't -- or does it? ;-)
Bye
Sven
Index: Completion/User/_telnet
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/User/_telnet,v
retrieving revision 1.2
diff -u -r1.2 _telnet
--- Completion/User/_telnet 2000/05/05 13:38:46 1.2
+++ Completion/User/_telnet 2001/03/20 09:42:19
@@ -37,6 +37,7 @@
'*\[-noasynctty\]*' '-noasynctty'
)
_telnet_args=($optionmap[(K)"$help"])
+ (( $#_telnet_args )) || _telnet_args=( '-l+[specify user]:user:->users' )
fi
_arguments -C -s \
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-03-20 9:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-20 9:46 PATCH: _telnet (was: Re: completion tricks) Sven Wischnowsky
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).