Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: shutdown completion
- X-seq: zsh-workers 42806
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: PATCH: shutdown completion
- Date: Sat, 19 May 2018 10:57:39 +0200
- Authentication-results: amavisd4.gkg.net (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.co.uk
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1526720262; bh=NEqP1epLbbiQmrHChGcZc5PWUzBgC9PMvjTdRfBHaXk=; h=From:References:To:Subject:Date:From:Subject; b=GKTnzaRFUvJ5y3f1IsSP7vV/z+nAIddpfSLqxOBuOdGo4lNdEYr3n6vB5zjCbstHCMAHKmpfFzZc/jUjNjRk2gdtrNoe1z+tSfzckD4rELWGBO738dqKgbZvTY6vG1CrQ0Pz7p8ZbLg4AaiNKG8v34aHY6F9IbJSily+ck2jm39yhBR1RUIOCf573JckjWiV+UiboNKI6LfY+1XZHYGEeybwqShe9pN9UgYHe2ZT0J4+Ka+/+ZOiK4qFjoxWu59JzCnC0sRiXRrOvpMtbI38av0K8tP23FEz8UB5zELeSiesE97ooqyrtNDXD4zJNN1TwRPFFY6LjpFUedMHUP5JsA==
- In-reply-to: <8CA7C564-250E-498E-BCB0-518FBA10FF00@kba.biglobe.ne.jp>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <18406.1522407738@thecus> <8CA7C564-250E-498E-BCB0-518FBA10FF00@kba.biglobe.ne.jp>
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