* [patch] Few OpenBSD updates
@ 2018-01-21 4:38 Matthew Martin
0 siblings, 0 replies; only message in thread
From: Matthew Martin @ 2018-01-21 4:38 UTC (permalink / raw)
To: zsh-workers
A few small updates for OpenBSD.
- Matthew Martin
diff --git a/Completion/Unix/Command/_dhclient b/Completion/Unix/Command/_dhclient
index af38a28e6..b5889df21 100644
--- a/Completion/Unix/Command/_dhclient
+++ b/Completion/Unix/Command/_dhclient
@@ -20,6 +20,7 @@ case $OSTYPE in
args+=(
'-i+[ignore values provided by leases for specified options]:options'
'-L+[specify file to write option data too]:file:_files'
+ "-n[don't configure any interfaces]"
)
;;
*) # ISC implementation, used on Linux and NetBSD
diff --git a/Completion/Unix/Command/_id b/Completion/Unix/Command/_id
index 95580ba76..a0a03faad 100644
--- a/Completion/Unix/Command/_id
+++ b/Completion/Unix/Command/_id
@@ -32,7 +32,11 @@ else
)
;;
openbsd*)
- args+=( '(-)-R[display the routing table of the current process]' )
+ args+=(
+ '(-)-c[display the login class]'
+ '(-)-p[make the output human readable]'
+ '(-)-R[display the routing table of the current process]'
+ )
;;
darwin*|dragonfly*|freebsd*)
args+=( '(-)-P[print id in the form of a password file entry]' )
diff --git a/Completion/Unix/Command/_install b/Completion/Unix/Command/_install
index 25d9dfcaa..f5056b5d0 100644
--- a/Completion/Unix/Command/_install
+++ b/Completion/Unix/Command/_install
@@ -48,13 +48,13 @@ else
'-L+[use user/group database files from specified directory]: :_directories'
'-l[fall back to system files if user/group not found in -L directory]'
)
- [[ $OSTYPE == netbsd* ]] && {
- args+=(
- '-a+[specify shell command to run on files after install]:shell command'
- '-r[use temporary files to perform safe copy]'
- '-S+[specify arguments to pass to strip program]:arguments to strip program'
- )
- # NetBSD has no -v for some reason
+ [[ $OSTYPE == netbsd* ]] && args+=(
+ '-a+[specify shell command to run on files after install]:shell command'
+ '-r[use temporary files to perform safe copy]'
+ '-S+[specify arguments to pass to strip program]:arguments to strip program'
+ )
+ [[ $OSTYPE == (net|open)bsd* ]] && {
+ # (Net|Open)BSD has no -v for some reason
args=( ${args##((#s)|*\))(\*|)-v*} )
}
[[ $OSTYPE == openbsd* ]] && args+=(
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-01-21 4:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-21 4:38 [patch] Few OpenBSD updates Matthew Martin
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).