summaryrefslogtreecommitdiff
path: root/zmore.in
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2010-02-02 00:40:41 +0300
committerJim Meyering <meyering@redhat.com>2010-02-03 06:29:42 +0100
commit2bea18bc85c6815e742dd3aa287d8f7aa2f0bb74 (patch)
tree6ff6374fe867f59e4ec5b032f6843587c0909283 /zmore.in
parent026eb1815d339e73102e3ae5a61543049ae9423a (diff)
downloadgzip-2bea18bc85c6815e742dd3aa287d8f7aa2f0bb74.tar.gz
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.
Diffstat (limited to 'zmore.in')
-rw-r--r--zmore.in2
1 files changed, 1 insertions, 1 deletions
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