guile-devel
[Top][All Lists]
Advanced

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

[PATCH 6/7] check-guile.in: exit 2 on errors and direct output to stderr


From: Rob Browning
Subject: [PATCH 6/7] check-guile.in: exit 2 on errors and direct output to stderr
Date: Fri, 25 Aug 2023 18:17:35 -0500

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 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/check-guile.in b/check-guile.in
index 09d95a03c..31bdce340 100644
--- a/check-guile.in
+++ b/check-guile.in
@@ -29,8 +29,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.
-- 
2.39.2




reply via email to

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