diff options
author | Wolfram Schneider <wosch@FreeBSD.org> | 1996-02-19 00:44:19 +0000 |
---|---|---|
committer | Wolfram Schneider <wosch@FreeBSD.org> | 1996-02-19 00:44:19 +0000 |
commit | d7e0e5ca0f82c11324beedc8e7d256102e2ef965 (patch) | |
tree | 9b8f8df0eb9caf897a1cbf95bc707616786a4937 /bin/rm | |
parent | 8ec7a852b0cbbd7348b05373ea0fd79d3c288c08 (diff) | |
download | src-d7e0e5ca0f82c11324beedc8e7d256102e2ef965.tar.gz src-d7e0e5ca0f82c11324beedc8e7d256102e2ef965.zip |
delete my last commit
Submitted by: pst, ache
Notes
Notes:
svn path=/head/; revision=14154
Diffstat (limited to 'bin/rm')
-rw-r--r-- | bin/rm/rm.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/rm/rm.c b/bin/rm/rm.c index f9ce8d1c2434..ffe565505241 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.7 1996/02/18 19:00:59 wosch Exp $ + * $Id: rm.c,v 1.6 1995/04/13 13:35:09 ache Exp $ */ #ifndef lint @@ -81,8 +81,7 @@ main(argc, argv) { int ch, rflag; - rflag = 0; - + Pflag = rflag = 0; while ((ch = getopt(argc, argv, "dfiPRr")) != EOF) switch(ch) { case 'd': @@ -103,6 +102,7 @@ main(argc, argv) case 'r': /* Compatibility. */ rflag = 1; break; + case '?': default: usage(); } @@ -378,7 +378,7 @@ check(path, name, sp) first = ch = getchar(); while (ch != '\n' && ch != EOF) ch = getchar(); - return (first == 'y' || first == 'Y'); + return (first == 'y'); } #define ISDOT(a) ((a)[0] == '.' && (!(a)[1] || ((a)[1] == '.' && !(a)[2]))) @@ -410,6 +410,6 @@ void usage() { - (void)fprintf(stderr, "usage: rm [-dfiPRr] file ...\n"); + (void)fprintf(stderr, "usage: rm [-dfiRr] file ...\n"); exit(1); } |