> "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) _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel