From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VmRtU-00010O-Td for mharc-grub-devel@gnu.org; Fri, 29 Nov 2013 12:30:20 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37473) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VmRtL-0000zd-RO for grub-devel@gnu.org; Fri, 29 Nov 2013 12:30:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VmRtD-0001bL-Bv for grub-devel@gnu.org; Fri, 29 Nov 2013 12:30:11 -0500 Received: from mail-la0-x22b.google.com ([2a00:1450:4010:c03::22b]:45665) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VmRtD-0001Ym-4I for grub-devel@gnu.org; Fri, 29 Nov 2013 12:30:03 -0500 Received: by mail-la0-f43.google.com with SMTP id n7so6947358lam.16 for ; Fri, 29 Nov 2013 09:30:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=aXfIPdH9YRWwRx04lUAi0VmyiUdBmcmagwugNcm2DKI=; b=zK8JWcOXdcdYs5N9K78BZdHyEjFdPByBFVqdAyYWsCMj66qM0d19iA1VrjeT/7MmxB lat12uoBg3DBQVUAuVjDYEK9rvHEupPTbO/Tk+D6Rb6Gj/WaYLquuDJ/hc7zscZBktZf XBC98i8/4Z0zY0SKTkqDd0jfN+lrTy0O/I9WKY05egjYN3e6kXtE9Fw84zVss3i0rWfa vUYYuOXJKU1f4b6/7EkArI1CqbrVgZZxfJMv5LNJyXfKPDAF0WY2K9WbwU0TGUvzaSfZ ipNASutvaxvFDAHGqJX6a6L9OL+WFaZI221du0dg16IVNIWSM3BR8OOiSthoI0uVziLo SO/Q== X-Received: by 10.112.158.231 with SMTP id wx7mr15189786lbb.27.1385746202021; Fri, 29 Nov 2013 09:30:02 -0800 (PST) Received: from localhost.localdomain (ppp91-76-134-134.pppoe.mtu-net.ru. [91.76.134.134]) by mx.google.com with ESMTPSA id e1sm14996727lbe.0.2013.11.29.09.30.01 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 Nov 2013 09:30:01 -0800 (PST) From: Andrey Borzenkov To: grub-devel@gnu.org Subject: [PATCH] document sleep command exit codes Date: Fri, 29 Nov 2013 21:29:57 +0400 Message-Id: <1385746197-8215-1-git-send-email-arvidjaar@gmail.com> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <20131129161845.GG16321@riva.ucam.org> References: <20131129161845.GG16321@riva.ucam.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::22b X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Nov 2013 17:30:20 -0000 > "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)