Date: Tue, 15 Jun 2004 00:07:24 +0000 (UTC) From: Tim Kientzle <kientzle@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/tar bsdtar.c Message-ID: <200406150007.i5F07OLH060608@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
kientzle 2004-06-15 00:07:24 UTC
FreeBSD src repository
Modified files:
usr.bin/tar bsdtar.c
Log:
Clean up usage message(s):
* Usage goes to stderr, not stdout
* Use correct argument markup
* bsdtar --help no longer exits with an error return code
* ensure that the word "bsdtar" appears in the first
line output from "bsdtar --help" (even if the program is
invoked as "tar")
In particular, scripts can now test for the presence of bsdtar.
For example, in /bin/sh:
if (tar --help 2>&1 | grep bsdtar >/dev/null 2>&1) then \
echo bsdtar; else echo not bsdtar; fi
Revision Changes Path
1.25 +29 -9 src/usr.bin/tar/bsdtar.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406150007.i5F07OLH060608>
