[PATCH 26/31] more: add -e posix compliance option

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Reference: http://pubs.opengroup.org/onlinepubs/7908799/xcu/more.html
Signed-off-by: Sami Kerola <kerolasa@xxxxxx>
---
 text-utils/more.1 | 5 +++++
 text-utils/more.c | 2 ++
 2 files changed, 7 insertions(+)

diff --git a/text-utils/more.1 b/text-utils/more.1
index c289393..e9350fa 100644
--- a/text-utils/more.1
+++ b/text-utils/more.1
@@ -106,6 +106,11 @@ Start displaying each file at line
 The
 .I string
 to be searched in each file before starting to display it.
+.TP
+.B \-e
+Posix compliance.  This option makes more to exit immediately after
+writing the last line of the last file in the argument list, that is the
+default functionality so silently ignore the option.
 .SH COMMANDS
 Interactive commands for
 .B more
diff --git a/text-utils/more.c b/text-utils/more.c
index c5a41b8..7915e90 100644
--- a/text-utils/more.c
+++ b/text-utils/more.c
@@ -263,6 +263,8 @@ static void argscan(struct more_control *ctl, char *s)
 		case 'i':
 			ctl->ignore_case_opt = 1;
 			break;
+		case 'e':
+			break;
 		case '-':
 		case ' ':
 		case '\t':
-- 
2.3.0

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux