summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2016-06-18 00:07:39 +0200
committerOliver Kiddle <opk@zsh.org>2016-06-18 00:08:16 +0200
commitbce43df70d1b09d9480dca36e6dd2641facdb6f0 (patch)
tree31f26a95e8d5509ffa56a2f8dd2f939cc3bf6284
parent4cacf1624f0393c43a9a2c3259957b8d78eb7609 (diff)
downloadzsh-bce43df70d1b09d9480dca36e6dd2641facdb6f0.tar.gz
zsh-bce43df70d1b09d9480dca36e6dd2641facdb6f0.tar.xz
zsh-bce43df70d1b09d9480dca36e6dd2641facdb6f0.zip
38703: support su options on macOS
-rw-r--r--ChangeLog4
-rw-r--r--Completion/Unix/Command/_su2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 2ac9ceb63..26cf8861a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2016-06-18  Oliver Kiddle  <opk@zsh.org>
+
+	* 38703: Completion/Unix/Command/_su: support su options on macOS
+
 2016-06-16  Peter Stephenson  <p.stephenson@samsung.com>
 
 	* 38693: Doc/Zsh/contrib.yo, Functions/Misc/zcalc,
diff --git a/Completion/Unix/Command/_su b/Completion/Unix/Command/_su
index 73b27ee90..900905632 100644
--- a/Completion/Unix/Command/_su
+++ b/Completion/Unix/Command/_su
@@ -25,7 +25,7 @@ case $OSTYPE in
     )
     first="(--help --version)${first#???}"
   ;;
-  *bsd*|dragonfly*)
+  *bsd*|darwin*|dragonfly*)
     args+=(
       '-c[use settings from specified login class]:class'
       '-f[if the invoked shell is csh, prevent it from reading .cshrc]'