From 2bea18bc85c6815e742dd3aa287d8f7aa2f0bb74 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Tue, 2 Feb 2010 00:40:41 +0300 Subject: [PATCH] wrapper scripts: write diagnostics to stderr, not to stdout * zforce.in: In case of usage error, output short error diagnostics to stderr instead of printing help text to stdout. * zmore.in: Likewise. * znew.in: Likewise. --- zforce.in | 2 +- zmore.in | 2 +- znew.in | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/zforce.in b/zforce.in index b9e057d..fdce8b6 100644 --- a/zforce.in +++ b/zforce.in @@ -44,7 +44,7 @@ not compress them twice. Report bugs to ." if test $# = 0; then - echo "$usage" + echo >&2 "$0: invalid number of operands; try \`$0 --help' for help" exit 1 fi diff --git a/zmore.in b/zmore.in index 64b144d..0f048c9 100644 --- a/zmore.in +++ b/zmore.in @@ -57,7 +57,7 @@ fi if test $# = 0; then if test -t 0; then - echo "$usage" + echo >&2 "$0: invalid number of operands; try \`$0 --help' for help" else gzip -cdfq | eval ${PAGER-more} fi diff --git a/znew.in b/znew.in index 43f3148..78ae253 100644 --- a/znew.in +++ b/znew.in @@ -97,7 +97,7 @@ do done if test $# -eq 0; then - echo "$usage" + echo >&2 "$0: invalid number of operands; try \`$0 --help' for help" exit 1 fi -- 2.47.2