summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2022-11-21 14:09:57 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2022-12-14 16:05:43 +0100
commit3636d52cbebe81e306b3571183232f6e8be730d1 (patch)
tree7fbbdab436bbd4299c25cee31e63ce6eabcfbdbc
parente977853e70d4a8c346a1ad765fc8353ce0e2ced8 (diff)
downloadbusybox-3636d52cbebe81e306b3571183232f6e8be730d1.tar.gz
more: accept and ignore -e
Accept and ignore -e which is specified in POSIX. https://pubs.opengroup.org/onlinepubs/9699919799/utilities/more.html Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--util-linux/more.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util-linux/more.c b/util-linux/more.c
index eea69da06..a830dcbc1 100644
--- a/util-linux/more.c
+++ b/util-linux/more.c
@@ -84,11 +84,12 @@ int more_main(int argc UNUSED_PARAM, char **argv)
/* Parse options */
/* Accepted but ignored: */
/* -d Display help instead of ringing bell */
+ /* -e Exit immediately after writing the last line */
/* -f Count logical lines (IOW: long lines are not folded) */
/* -l Do not pause after any line containing a ^L (form feed) */
/* -s Squeeze blank lines into one */
/* -u Suppress underlining */
- getopt32(argv, "dflsu");
+ getopt32(argv, "deflsu");
argv += optind;
/* Another popular pager, most, detects when stdout