aboutsummaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-02-27 11:47:51 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2018-02-27 11:47:51 +0100
commit0e0209ac5312fb0a4cf740f59e3564c6549f4d77 (patch)
tree675cfda8e31ab39c8db65783fc33aa0b7e510caf /miscutils
parent23286900da2f38de6b7f0c8318263eac4ce774d1 (diff)
downloadbusybox-0e0209ac5312fb0a4cf740f59e3564c6549f4d77.tar.gz
less: accept -R option. Closes 10816
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/less.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/miscutils/less.c b/miscutils/less.c
index 97ab1e6f8..51ef2a59d 100644
--- a/miscutils/less.c
+++ b/miscutils/less.c
@@ -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;