From: Armin Wolfermann <aw@osn.de>
To: zsh-workers@sunsite.dk
Subject: PATCH: _sysctl for OpenBSD
Date: Sat, 23 Nov 2002 16:20:10 +0100 [thread overview]
Message-ID: <20021123152032.GA16106@kuba.osn.de> (raw)
Index: _sysctl
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_sysctl,v
retrieving revision 1.4
diff -u -r1.4 _sysctl
--- _sysctl 8 Oct 2001 16:22:40 -0000 1.4
+++ _sysctl 23 Nov 2002 15:17:58 -0000
@@ -33,4 +33,13 @@
'(-n -w -p -a *)-A[list all in table form]' \
'(-n -p -a -A)*:sysctl variable:_files -W /proc/sys'
;;
+ openbsd*)
+ : ${(A)_cache_sysctlvars:=${${(f)"$(sysctl -a)"}%% *}}
+ _arguments -s -A "-*" \
+ '(-w -A *)-a[list all string and integer variables]' \
+ '(-w -a *)-A[list all known variables]' \
+ '(-w)-n[show only values]' \
+ '(-a -A -n)-w[write variable]' \
+ '(-a -A)*:sysctl variable:_multi_parts ${words[(r)-w]:+-S=} -i . _cache_sysctlvars'
+ ;;
esac
reply other threads:[~2002-11-23 15:20 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=20021123152032.GA16106@kuba.osn.de \
--to=aw@osn.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).