Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: shutdown completion



On 3 Apr, Jun T wrote:
>
> Are there any linux systems (not using systemd) where
> '-p' (lower case 'p') means 'turn off power after shutdown'?

None of the linux systems I've looked at have -p. -P does occur.
More significantly, the patch uses args= where args+= was needed and
loses a bunch of options.

Oliver

diff --git a/Completion/Unix/Command/_shutdown b/Completion/Unix/Command/_shutdown
index 9726182a0..4119502fb 100644
--- a/Completion/Unix/Command/_shutdown
+++ b/Completion/Unix/Command/_shutdown
@@ -27,8 +27,8 @@ case $OSTYPE in
       '*:warning message'
     )
   ;|
-  *bsd*|dragonfly*|linux*)
-    args=(
+  *bsd*|dragonfly*)
+    args+=(
       '-p[turn off power after shutdown]'
     )
   ;|



Messages sorted by: Reverse Date, Date, Thread, Author