guile-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Guile-commits] 01/06: check-guile.in: exit 2 on errors and direct outpu


From: Andy Wingo
Subject: [Guile-commits] 01/06: check-guile.in: exit 2 on errors and direct output to stderr
Date: Fri, 21 Jun 2024 05:14:24 -0400 (EDT)

wingo pushed a commit to branch main
in repository guile.

commit 08285b6894c2606ed576124fdeb82415bbc7873f
Author: Rob Browning <rlb@defaultvalue.org>
AuthorDate: Fri Aug 25 17:18:30 2023 -0500

    check-guile.in: exit 2 on errors and direct output to stderr
    
    Return 2 rather than 1 for errors so that 1 will be available for any
    future boolean tests (as with say grep).
    
    Direct error message to stderr rather than stdout.
    
    * check-guile.in: send error message to stderr and exit 2 (not 1).
---
 check-guile.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/check-guile.in b/check-guile.in
index 68f353c6e..5a7beee8a 100644
--- a/check-guile.in
+++ b/check-guile.in
@@ -30,8 +30,8 @@ if [ -f "$guile" -a -x "$guile" ] ; then
     echo "Testing $guile ..." "$@"
     echo "with GUILE_LOAD_PATH=$GUILE_LOAD_PATH"
 else
-    echo "ERROR: Cannot execute $guile"
-    exit 1
+    echo "ERROR: Cannot execute $guile" 1>&2
+    exit 2
 fi
 
 # documentation searching ignores GUILE_LOAD_PATH.



reply via email to

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