[PATCH] less: Ignore -X

Ismael Luceno ismael at iodev.co.uk
Tue Sep 28 19:47:49 UTC 2021


The flag disables termcap init/deinit of the terminal, which the applet
doesn't do anyway.

Signed-off-by: Ismael Luceno <ismael at iodev.co.uk>
---
 miscutils/less.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/miscutils/less.c b/miscutils/less.c
index 223c2558d0d7..26983f40d329 100644
--- a/miscutils/less.c
+++ b/miscutils/less.c
@@ -1820,7 +1820,7 @@ int less_main(int argc, char **argv)
 	getopt32(argv, "EMmN~IF"
 		IF_FEATURE_LESS_TRUNCATE("S")
 		IF_FEATURE_LESS_RAW("R")
-		/*ignored:*/"s"
+		/*ignored:*/"sX"
 	);
 	argv += optind;
 	num_files = argc - optind;
-- 
2.33.0



More information about the busybox mailing list