Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: _telnet (was: Re: completion tricks)



[ 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@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author