zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.dk
Subject: PATCH: _telnet (was: Re: completion tricks)
Date: Tue, 20 Mar 2001 10:46:26 +0100 (MET)	[thread overview]
Message-ID: <200103200946.KAA07086@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Adam Spiers's message of Mon, 19 Mar 2001 21:30:06 +0000


[ 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


                 reply	other threads:[~2001-03-20  9:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200103200946.KAA07086@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.de \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).