From: Andrey Borzenkov <arvidjaar@gmail.com>
To: grub-devel@gnu.org
Subject: [PATCH] document sleep command exit codes
Date: Fri, 29 Nov 2013 21:29:57 +0400 [thread overview]
Message-ID: <1385746197-8215-1-git-send-email-arvidjaar@gmail.com> (raw)
In-Reply-To: <20131129161845.GG16321@riva.ucam.org>
> "sleep --interruptible" returns true (i.e. 0)
> if and only if the timeout expires *without* being interrupted,
This should not require digging in sources ...
---
docs/grub.texi | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/docs/grub.texi b/docs/grub.texi
index 529e328..ceea7eb 100644
--- a/docs/grub.texi
+++ b/docs/grub.texi
@@ -4883,7 +4883,8 @@ Alias for @code{hashsum --hash sha512 arg @dots{}}. See command @command{hashsum
@deffn Command sleep [@option{--verbose}] [@option{--interruptible}] count
Sleep for @var{count} seconds. If option @option{--interruptible} is given,
allow @key{ESC} to interrupt sleep. With @option{--verbose} show countdown
-of remaining seconds.
+of remaining seconds. Exit code is set to 0 if timeout expired and to 1
+if timeout was interrupted by @key{ESC}.
@end deffn
--
tg: (8ddf84b..) u/sleep-exit-code (depends on: master)
next prev parent reply other threads:[~2013-11-29 17:30 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-11 13:18 [RFC][PATCH] Allow hotkeys to interrupt hidden menu Colin Watson
2013-09-11 13:31 ` Colin Watson
2013-09-12 2:40 ` Andrey Borzenkov
2013-09-13 9:18 ` Franz Hsieh
2013-09-19 6:28 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-10-02 8:03 ` Franz Hsieh
2013-10-02 8:50 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-10-14 6:02 ` Franz Hsieh
2013-10-21 6:45 ` Franz Hsieh
2013-11-04 3:10 ` Yang Bai
2013-11-27 23:40 ` Colin Watson
2013-11-28 2:30 ` Colin Watson
2013-11-28 6:19 ` Vladimir 'phcoder' Serbinenko
2013-11-28 11:04 ` Colin Watson
2013-11-28 14:08 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-11-29 16:18 ` Colin Watson
2013-11-29 16:56 ` Andrey Borzenkov
2013-11-29 17:20 ` Colin Watson
2013-11-29 17:29 ` Andrey Borzenkov [this message]
2013-11-30 10:39 ` [PATCH] document sleep command exit codes Vladimir 'φ-coder/phcoder' Serbinenko
2013-11-28 17:20 ` [RFC][PATCH] Allow hotkeys to interrupt hidden menu Andrey Borzenkov
2013-11-28 18:05 ` Colin Watson
2013-11-29 6:17 ` Andrey Borzenkov
2013-11-29 15:26 ` Colin Watson
2013-11-28 17:22 ` Andrey Borzenkov
2013-11-28 18:06 ` Colin Watson
2013-11-29 6:21 ` Andrey Borzenkov
2013-09-12 2:44 ` Andrey Borzenkov
2013-09-12 13:17 ` Colin Watson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1385746197-8215-1-git-send-email-arvidjaar@gmail.com \
--to=arvidjaar@gmail.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).