zsh-workers
 help / color / mirror / code / Atom feed
From: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
To: <zsh-workers@sunsite.auc.dk>
Subject: RE: a compdef for FreeBSD's sysctl(8) command
Date: Tue, 3 Jul 2001 10:31:09 +0400	[thread overview]
Message-ID: <001701c10389$bf457e50$21c9ca95@mow.siemens.ru> (raw)
In-Reply-To: <86y9q6d0fz.wl@archon.local.idaemons.org>

Just to comment that it exists in Linux as well.

> -----Original Message-----
> From: Akinori MUSHA [mailto:knu@iDaemons.org]
> Sent: Tuesday, July 03, 2001 9:52 AM
> To: zsh-workers@sunsite.auc.dk
> Subject: a compdef for FreeBSD's sysctl(8) command
> 
> 
> Hi,
> 
> Attached is a compdef for FreeBSD's sysctl(8) command which gets or
> sets kernel state.  It was reviewed in a public mailing list.
> 
> Would you please merge this?
> 
> Thanks in advance.
> 
> -- 
>                      /
>                     /__  __            Akinori.org / MUSHA.org
>                    / )  )  ) )  /     FreeBSD.org / Ruby-lang.org
> Akinori MUSHA aka / (_ /  ( (__(  @ iDaemons.org / and.or.jp
> 
> "Freeze this moment a little bit longer, make each impression
>   a little bit stronger..  Experience slips away -- Time stand still"
> 
> #compdef sysctl
> 
> case `uname -sr` in
> FreeBSD\ [0-4].*)
>     (( $+functions[_sysctl_variables] )) ||
>     _sysctl_variables() {
> 	local ret=1 sup=' '
> 
> 	(( $words[(I)-*w*] )) && sup='='
> 
> 	compadd "$@" -S $sup - $(sysctl -A | sed 's/:.*//') && ret=0
> 
> 	return ret
>     }
> 
>     _arguments -s \
>      '-a[list all]' \
>      '-A[show all opaques (values suppressed)]' \
>      '-b[binary output]' \
>      '-n[show only variable values]' \
>      '-w[write mode]' \
>      '-X[show all opaques (entire values)]' \
>      '*:variable:_sysctl_variables'
>     ;;
> FreeBSD\ [5-9].*)
>     _arguments -s \
>      '-a[list all]' \
>      '-b[binary output]' \
>      '-N[show only variable names]' \
>      '-n[show only variable values]' \
>      '-o[show opaques as well (values suppressed)]' \
>      '-x[show opaques as well (entire values)]' \
>      '*:variable:compadd -S "" - $(sysctl -aN)'
>     ;;
> esac
> 
> 


  reply	other threads:[~2001-07-03  6:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-03  5:52 Akinori MUSHA
2001-07-03  6:31 ` Andrej Borsenkow [this message]
2001-07-03 10:49 ` Oliver Kiddle
2001-07-03 11:16   ` Akinori MUSHA
2001-07-03 16:28     ` Bart Schaefer
2001-07-03 18:27       ` Akinori MUSHA
2001-07-04  8:46       ` Sven Wischnowsky
2001-07-05 11:04         ` PATCH: " Oliver Kiddle

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='001701c10389$bf457e50$21c9ca95@mow.siemens.ru' \
    --to=andrej.borsenkow@mow.siemens.ru \
    --cc=zsh-workers@sunsite.auc.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).