changeset 42:233ac9bea4f1

switched exit code 127 to 126 (because shell returns 127 if command not found)
author meillo@marmaro.de
date Sat, 01 Mar 2008 20:41:35 +0100
parents 1ad3d7305e5d
children c7dca4a1dc37
files baum.1 baum.c
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/baum.1	Sat Mar 01 20:35:00 2008 +0100
+++ b/baum.1	Sat Mar 01 20:41:35 2008 +0100
@@ -25,7 +25,7 @@
 
 .TP
 .BI \-v
-Verbose output
+Verbose output (All verbose output goes to stderr)
 
 .TP
 .BI \-\-help
@@ -94,7 +94,7 @@
 node name too long, or no value given
 
 .TP
-.BI 127
+.BI 126
 invalid command line options
 
 
--- a/baum.c	Sat Mar 01 20:35:00 2008 +0100
+++ b/baum.c	Sat Mar 01 20:41:35 2008 +0100
@@ -254,7 +254,7 @@
 			*/
 		} else {
 			fprintf(stderr, "unknown option: %s\n", argv[0]);
-			exit(127);
+			exit(126);
 		}
 	}