diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 12:03:59 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 12:03:59 +0000 |
commit | 2e2a22b3c0d0a1ef26b00fb34e8763e4b85232bf (patch) | |
tree | 2570a7e990eef4b4e53230d5383e8f87396ab224 /Completion | |
parent | 4b4dd69be093f337af05bb41d6e986d912c01b4a (diff) | |
download | zsh-2e2a22b3c0d0a1ef26b00fb34e8763e4b85232bf.tar.gz zsh-2e2a22b3c0d0a1ef26b00fb34e8763e4b85232bf.tar.xz zsh-2e2a22b3c0d0a1ef26b00fb34e8763e4b85232bf.zip |
moved to Completion/Unix/Command/_telnet
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/User/_telnet | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/Completion/User/_telnet b/Completion/User/_telnet deleted file mode 100644 index cee3b276b..000000000 --- a/Completion/User/_telnet +++ /dev/null @@ -1,71 +0,0 @@ -#compdef telnet - -# Parameter used: -# -# telnet_hosts_ports_users -# The array that contains 3-tuples `host:port:user'. - -local curcontext="$curcontext" state line expl -typeset -A opt_args - -if (( ! $+_telnet_args )); then - local help="$(_call options telnet -\? < /dev/null 2>&1)" - local -A optionmap - optionmap=( - '*\[-8\]*' '-8[allow 8-Bit data]' - '*\[-E\]*' '-E[disable an escape character]' - '*\[-K\]*' '-K[no automatic login]' - '*\[-L\]*' '-L[allow 8-Bit data on output]' - '*\[-N\]*' '-N[supress reverse lookup]' - '*\[-S tos\]*' '-S+:IP type-of-service:' - '*\[-X atype\]*' '-X+:authentication type to disable:' - '*\[-a\]*' '-a[attempt automatic login]' - '*\[-c\]*' '-c[disable .telnetrc]' - '*\[-d\]*' '-d[debug mode]' - '*\[-e char\]*' '-e+[specify escape character]:escape character:' - '*\[-f/*' '-f' - '*/-F\]*' '-F' - '*\[-k realm\]*' '-k+:realm:' - '*\[-l user\]*' '-l+[specify user]:user:->users' - '*\[-n tracefile\]*' '-n+[specify tracefile]:tracefile:_files' - '*\[-r\]*' '-r[rlogin like user interface]' - '*\[-s src_addr\]*' '-s+[set source IP address]:src_addr:' - '*\[-x\]*' '-x' - '*\[-t transcom\]*' '-t+:transcom:' - '*\[-noasynch\]*' '-noasynch' - '*\[-noasyncnet\]*' '-noasyncnet' - '*\[-noasynctty\]*' '-noasynctty' - ) - _telnet_args=($optionmap[(K)"$help"]) - (( $#_telnet_args )) || _telnet_args=( '-l+[specify user]:user:->users' ) -fi - -_arguments -C -s \ - "$_telnet_args[@]" \ - ':host:->hosts' \ - ':port:->ports' && return 0 - -case "$state" in -hosts) - _wanted hosts expl host \ - _combination -s '[@:]' '' users-hosts-ports \ - ${opt_args[-l]:+users=${opt_args[-l]:q}} \ - hosts - - ;; - -ports) - _wanted ports expl port \ - _combination -s '[@:]' '' users-hosts-ports \ - ${opt_args[-l]:+users=${opt_args[-l]:q}} \ - hosts="${line[1]:q}" \ - ports - - ;; - -users) - _wanted users expl user \ - _combination -s '[@:]' '' users-hosts-ports \ - ${line[2]:+hosts="${line[2]:q}"} \ - ${line[3]:+ports="${line[3]:q}"} \ - users - - ;; -esac |