diff --git a/getconf.1 b/getconf.1 index 8fcf960..71a4767 100644 --- a/getconf.1 +++ b/getconf.1 @@ -32,7 +32,7 @@ and limits.h (Minimum and Maximum). .sp If .Ar var -is not defined or has not been found, +is not defined, .Nm writes "undefined" to stdout. .Sh OPTIONS @@ -48,7 +48,7 @@ was matched and its value written successfully. .It 1 An error occured or .Ar var -was neither defined nor found. +was invalid. .El .Sh STANDARDS The diff --git a/getconf.c b/getconf.c index d927f2d..c7cfb06 100644 --- a/getconf.c +++ b/getconf.c @@ -102,7 +102,5 @@ main(int argc, char *argv[]) usage(); } - puts("undefined"); - - return 1; + eprintf("invalid variable: %s\n", argv[0]); }