* [patch] OpenBSD's usermod has no -a
@ 2015-09-27 6:03 Matthew Martin
2015-09-27 23:42 ` Daniel Shahaf
0 siblings, 1 reply; 2+ messages in thread
From: Matthew Martin @ 2015-09-27 6:03 UTC (permalink / raw)
To: zsh-workers
OpenBSD's usermod has no a flag. The below patch removes it from
completion.
diff --git a/Completion/Unix/Command/_user_admin b/Completion/Unix/Command/_user_admin
index 31ccbf1..3653308 100644
--- a/Completion/Unix/Command/_user_admin
+++ b/Completion/Unix/Command/_user_admin
@@ -44,8 +44,8 @@ if [[ $service = user* ]]; then
"(-U -p)-L[lock user's password]"
"(-L -p)-U[unlock user's password]"
)
+ [[ $OSTYPE = openbsd* ]] || args+=('-a[append groups]')
args+=(
- '-a[append groups]'
'-l[specify new user name]:new username'
':username:_users'
)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch] OpenBSD's usermod has no -a
2015-09-27 6:03 [patch] OpenBSD's usermod has no -a Matthew Martin
@ 2015-09-27 23:42 ` Daniel Shahaf
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Shahaf @ 2015-09-27 23:42 UTC (permalink / raw)
To: Matthew Martin; +Cc: zsh-workers
Matthew Martin wrote on Sun, Sep 27, 2015 at 01:03:16 -0500:
> OpenBSD's usermod has no a flag. The below patch removes it from
> completion.
Thanks, applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-09-27 23:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-27 6:03 [patch] OpenBSD's usermod has no -a Matthew Martin
2015-09-27 23:42 ` Daniel Shahaf
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).