Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[patch] OpenBSD's usermod has no -a
- X-seq: zsh-workers 36653
- From: Matthew Martin <phy1729@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [patch] OpenBSD's usermod has no -a
- Date: Sun, 27 Sep 2015 01:03:16 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=iZhaPAU8WTD/4XXVmzsehq/VX7JGtWSmAnq+cXEE3A8=; b=syhtNnrjbjIGhPUrf2VYii061siiFzz0w4stKJHr37ye0s5riaGD5tmClP14WA0g0B CAH6hGZkHaL6s9Caj51oVUvvhKxlCgWeckYyq6DkeVDYlMHRTLQknc0wKnDiN2V4vEaV 28X3MhWByQtBc/LHJArXFlGwzEKsN4vDjpnIBTlybCs3l1UZJjZ+msXwtn+J17t97s04 oSoY9t5cUXpQuadeRz5eaacJUbRbqh12ARXsaBN71CcvMCnioCruNuM4THbxXIe9ESat fcdV9fANTWsocRmX9P2vD72JwAN4uy3kJgk6ECLlb+P31FYBa5OVIL4q3tg000Ay8lZ8 8BMw==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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'
)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author