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>
This commit is contained in:
Natanael Copa 2022-11-21 14:09:57 +01:00 committed by Denys Vlasenko
parent e977853e70
commit 3636d52cbe

View File

@ -84,11 +84,12 @@ int more_main(int argc UNUSED_PARAM, char **argv)
/* Parse options */ /* Parse options */
/* Accepted but ignored: */ /* Accepted but ignored: */
/* -d Display help instead of ringing bell */ /* -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) */ /* -f Count logical lines (IOW: long lines are not folded) */
/* -l Do not pause after any line containing a ^L (form feed) */ /* -l Do not pause after any line containing a ^L (form feed) */
/* -s Squeeze blank lines into one */ /* -s Squeeze blank lines into one */
/* -u Suppress underlining */ /* -u Suppress underlining */
getopt32(argv, "dflsu"); getopt32(argv, "deflsu");
argv += optind; argv += optind;
/* Another popular pager, most, detects when stdout /* Another popular pager, most, detects when stdout