grub-devel
[Top][All Lists]
Advanced

[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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]