summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_install
diff options
context:
space:
mode:
authorMatthew Martin <phy1729@gmail.com>2018-01-20 22:38:41 -0600
committerOliver Kiddle <opk@zsh.org>2018-01-23 11:02:56 +0100
commitb5572f9037b89d477d86b6357b7847a978d3922a (patch)
tree41ed926211c8083dcf46b5c2f955cb5950f32969 /Completion/Unix/Command/_install
parent12704997a379bb626886e42b8bd2ddac0f367b97 (diff)
downloadzsh-b5572f9037b89d477d86b6357b7847a978d3922a.tar.gz
zsh-b5572f9037b89d477d86b6357b7847a978d3922a.zip
42309: A few small updates for OpenBSD
Diffstat (limited to 'Completion/Unix/Command/_install')
-rw-r--r--Completion/Unix/Command/_install14
1 files changed, 7 insertions, 7 deletions
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+=(