zsh-workers
 help / color / mirror / code / Atom feed
5876820e56870a23bdb41bd760c4f7962607999f blob 2571 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
 
#compdef cu

local variant ign
local -a args

_pick_variant -r variant taylor='Taylor UUCP' $OSTYPE --version

case $variant in
  openbsd*)
    args+=(
      "-d[don't block waiting for a carrier to be detected]"
      '-r[start cu in restricted mode - prevent local operations]'
      '-E+[specify escape character]:escape character [~]'
    )
  ;;
  taylor|(net|free)bsd*)
    args+=(
      '(-o -P --parity)-e[use even parity]'
      '(-e -P --parity)-o[use odd parity]'
    )
  ;|
  dragonfly*|(net|free)bsd*)
    args+=( '-t[connect via a hard-wired connection to a host on a dial-up line]' )
  ;|
  taylor|netbsd*)
    (( $#words > 2 )) && ign='!'
    args+=(
      "${ign}--help[display usage information]"
      '(-s)--speed=[set line speed for the connection]:line speed [9600]:_baudrates'
      '(-e -o -P)--parity=[set parity]:parity [none]:(even odd none)'
      '(-h --halfduplex)'{-h,--halfduplex}'[echo characters locally]'
      '--nostop[turn off XON/XOFF handling]'
      '(-E --escape)'{-E+,--escape=}'[specify escape character]:escape character [~]'
      '(-a -p --port)'{-a+,-p+,--port=}'[specify the port]:port'
      '(-c --phone -n --prompt)'{-c+,--phone=}'[specify phone number to call]:phone number'
      '(1 -l -z --system)--line=[specify line to use]:line:(/dev/(cuaU#<->|ttyS<->|tty.*|cu.*)(N%c))'
    )
  ;|
  taylor)
    args+=(
      "${ign}(-v --version)"{-v,--version}"[display version information]"
      '(-n --prompt -c --phone)'{-n,--prompt}'[prompt for the phone number to use]'
      '(-x --debug)-d[enter debugging mode]'
      '(-d -x --debug)'{-x+,--debug=}'[turn on particular debugging types]:debug type:_sequence compadd - all abnormal chat handshake port config incoming outgoing'
      '(-I --config)'{-I+,--config=}'[specify configuration file]:configuration file:_files'
      '(1 -z --system)'{-z+,--system=}'[specify system to call]:system'
    )
  ;;
  netbsd*)
    args+=(
      '(-E --escape)-n+[disable escape character processing]'
      '(-f -F --flow)'{-F+,--flow=}'[set flow control]:flow control:(hard soft none)'
      '(-F --flow)-f[use no flow control]'
      '(-e -o --parity)-P+[set parity]:parity [none]:(even odd none)'
    )
  ;;
  dragonfly*|freebsd*) args+=( '-a[set the acu port]:acu' ) ;|
  freebsd*) args=( -A "-*" $args '-h[echo characters locally]' ) ;;
esac

_arguments -s $args \
  '(--speed)-s+[set line speed for the connection]:line speed [9600]:_baudrates' \
  '(1 --line -z --system)-l+[specify line to use]:line:(/dev/(cuaU#<->|ttyS<->|tty.*|cu.*)(N%c))' \
  '1: :_guard "^-*" system'
debug log:

solving 5876820e5 ...
found 5876820e5 in https://git.vuxu.org/mirror/zsh/

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).