config-patches
[Top][All Lists]
Advanced

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

[PATCH] Redirect stdout to stderr for invalid option


From: Peter Kokot
Subject: [PATCH] Redirect stdout to stderr for invalid option
Date: Sat, 20 Oct 2018 10:59:01 +0200

Hello, the attached patch fixes one minor missed echo statement before
exit 1 to redirect it to stderr instead of the stdout in the
config.sub file.

Signed-off-by: Peter Kokot <address@hidden>

diff --git a/config.sub b/config.sub
index 2d5bbee..f208558 100755
--- a/config.sub
+++ b/config.sub
@@ -89,7 +89,7 @@ while test $# -gt 0 ; do
- )    # Use stdin as input.
break ;;
-* )
- echo "$me: invalid option $1$help"
+ echo "$me: invalid option $1$help" >&2
exit 1 ;;
*local*)


-- 
Peter Kokot

Attachment: stderr_redirect.patch
Description: Text Data


reply via email to

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