[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] document sleep command exit codes
From: |
Andrey Borzenkov |
Subject: |
[PATCH] document sleep command exit codes |
Date: |
Fri, 29 Nov 2013 21:29:57 +0400 |
> "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 address@hidden address@hidden 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)
- Re: [RFC][PATCH] Allow hotkeys to interrupt hidden menu, Yang Bai, 2013/11/03
- Re: [RFC][PATCH] Allow hotkeys to interrupt hidden menu, Colin Watson, 2013/11/27
- Re: [RFC][PATCH] Allow hotkeys to interrupt hidden menu, Colin Watson, 2013/11/27
- Re: [RFC][PATCH] Allow hotkeys to interrupt hidden menu, Vladimir 'phcoder' Serbinenko, 2013/11/28
- Re: [RFC][PATCH] Allow hotkeys to interrupt hidden menu, Colin Watson, 2013/11/28
- Re: [RFC][PATCH] Allow hotkeys to interrupt hidden menu, Vladimir 'φ-coder/phcoder' Serbinenko, 2013/11/28
- Re: [RFC][PATCH] Allow hotkeys to interrupt hidden menu, Colin Watson, 2013/11/29
- Re: [RFC][PATCH] Allow hotkeys to interrupt hidden menu, Andrey Borzenkov, 2013/11/29
- Re: [RFC][PATCH] Allow hotkeys to interrupt hidden menu, Colin Watson, 2013/11/29
- [PATCH] document sleep command exit codes,
Andrey Borzenkov <=
- Re: [PATCH] document sleep command exit codes, Vladimir 'φ-coder/phcoder' Serbinenko, 2013/11/30
- Re: [RFC][PATCH] Allow hotkeys to interrupt hidden menu, Andrey Borzenkov, 2013/11/28
- Re: [RFC][PATCH] Allow hotkeys to interrupt hidden menu, Colin Watson, 2013/11/28
- Re: [RFC][PATCH] Allow hotkeys to interrupt hidden menu, Andrey Borzenkov, 2013/11/29
- Re: [RFC][PATCH] Allow hotkeys to interrupt hidden menu, Colin Watson, 2013/11/29
- Re: [RFC][PATCH] Allow hotkeys to interrupt hidden menu, Andrey Borzenkov, 2013/11/28
- Re: [RFC][PATCH] Allow hotkeys to interrupt hidden menu, Colin Watson, 2013/11/28
- Re: [RFC][PATCH] Allow hotkeys to interrupt hidden menu, Andrey Borzenkov, 2013/11/29