[git commit] less: accept -R option. Closes 10816

Denys Vlasenko vda.linux at googlemail.com
Tue Feb 27 10:47:51 UTC 2018


commit: https://git.busybox.net/busybox/commit/?id=0e0209ac5312fb0a4cf740f59e3564c6549f4d77
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 miscutils/less.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

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;


More information about the busybox-cvs mailing list