less: accept -R option. Closes 10816
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 27 Feb 2018 10:47:51 +0000 (11:47 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 27 Feb 2018 10:47:51 +0000 (11:47 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/less.c

index 97ab1e6f8fd6e90cd77d28cc7c562532c4f90ff6..51ef2a59da183e50f114719b59c1cdf300a03644 100644 (file)
@@ -1814,7 +1814,11 @@ int less_main(int argc, char **argv)
         * -s: condense many empty lines to one
         *     (used by some setups for manpage display)
         */
-       getopt32(argv, "EMmN~I" IF_FEATURE_LESS_TRUNCATE("S") /*ignored:*/"s");
+       getopt32(argv, "EMmN~I"
+               IF_FEATURE_LESS_TRUNCATE("S")
+               IF_FEATURE_LESS_RAW("R")
+               /*ignored:*/"s"
+       );
        argv += optind;
        num_files = argc - optind;
        files = argv;