added -n flag from rcs diff
[unix-history] / usr / src / usr.bin / diff / diff / diff.c
index 0f937ee..34ec825 100644 (file)
@@ -1,4 +1,4 @@
-static char sccsid[] = "@(#)diff.c 4.4 %G%";
+static char sccsid[] = "@(#)diff.c 4.5 %G%";
 
 #include "diff.h"
 /*
 
 #include "diff.h"
 /*
@@ -57,6 +57,9 @@ main(argc, argv)
                case 'f':
                        opt = D_REVERSE;
                        continue;
                case 'f':
                        opt = D_REVERSE;
                        continue;
+               case 'n':
+                       opt = D_NREVERSE;
+                       continue;
                case 'b':
                        bflag = 1;
                        continue;
                case 'b':
                        bflag = 1;
                        continue;
@@ -118,7 +121,7 @@ main(argc, argv)
        file2 = argv[1];
        if (hflag && opt) {
                fprintf(stderr,
        file2 = argv[1];
        if (hflag && opt) {
                fprintf(stderr,
-                   "diff: -h doesn't support -e, -f, -c, or -I\n");
+                   "diff: -h doesn't support -e, -f, -n, -c, or -I\n");
                done();
        }
        if (!strcmp(file1, "-"))
                done();
        }
        if (!strcmp(file1, "-"))