diff options
author | wosch <wosch@FreeBSD.org> | 1996-03-07 23:26:59 +0000 |
---|---|---|
committer | wosch <wosch@FreeBSD.org> | 1996-03-07 23:26:59 +0000 |
commit | 424382b97890577a454834fbcd5a2d900c4d751f (patch) | |
tree | f29f223272fa037c1f01771afda157cb35465ee1 /bin/rm/rm.c | |
parent | a3bec8558ea310616fbfcd1621a12aeff52aff1e (diff) | |
download | FreeBSD-src-424382b97890577a454834fbcd5a2d900c4d751f.zip FreeBSD-src-424382b97890577a454834fbcd5a2d900c4d751f.tar.gz |
fix usage string
respond `Y' is equal to `y'
Add a note how to delete file name with beginning `-'
Diffstat (limited to 'bin/rm/rm.c')
-rw-r--r-- | bin/rm/rm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/rm/rm.c b/bin/rm/rm.c index fd3dd0c..a58427d 100644 --- a/bin/rm/rm.c +++ b/bin/rm/rm.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: rm.c,v 1.9 1996/02/19 00:44:02 wosch Exp $ + * $Id: rm.c,v 1.10 1996/02/19 05:57:22 pst Exp $ */ #ifndef lint @@ -377,7 +377,7 @@ check(path, name, sp) first = ch = getchar(); while (ch != '\n' && ch != EOF) ch = getchar(); - return (first == 'y'); + return (first == 'y' || first == 'Y'); } #define ISDOT(a) ((a)[0] == '.' && (!(a)[1] || ((a)[1] == '.' && !(a)[2]))) @@ -409,6 +409,6 @@ void usage() { - (void)fprintf(stderr, "usage: rm [-dfiPRr] file ...\n"); + (void)fprintf(stderr, "usage: rm [-f | -i] [-dPRr] file ...\n"); exit(1); } |