=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/less/main.c,v retrieving revision 1.2 retrieving revision 1.3 diff -c -r1.2 -r1.3 *** src/usr.bin/less/main.c 1996/09/21 06:06:40 1.2 --- src/usr.bin/less/main.c 1999/03/05 18:44:02 1.3 *************** *** 121,128 **** } #endif #define isoptstring(s) (((s)[0] == '-' || (s)[0] == '+') && (s)[1] != '\0') ! while (--argc > 0 && (isoptstring(argv[0]) || isoptpending())) scan_option(*argv++); #undef isoptstring if (isoptpending()) --- 121,134 ---- } #endif #define isoptstring(s) (((s)[0] == '-' || (s)[0] == '+') && (s)[1] != '\0') ! while (--argc > 0 && (isoptstring(argv[0]) || isoptpending())) { ! if (strcmp(argv[0], "--") == 0) { ! argv++; ! argc--; ! break; ! } scan_option(*argv++); + } #undef isoptstring if (isoptpending())