diff options
author | Sören Tempel | 2021-11-21 12:24:45 +0100 |
---|---|---|
committer | Denys Vlasenko | 2021-12-17 22:35:25 +0100 |
commit | bfd8738154747d16f66ccfde3036dc21d39c7cec (patch) | |
tree | 90436ec94c1ce7533248ddf07b091d54d11275f5 /libbb/time.c | |
parent | 579894bfd28ffb38f7dabc7862d4e7ebfade2865 (diff) | |
download | busybox-bfd8738154747d16f66ccfde3036dc21d39c7cec.zip busybox-bfd8738154747d16f66ccfde3036dc21d39c7cec.tar.gz |
ed: add support for -p command-line option as mandated by POSIX
The POSIX.1-2008 specification of ed(1) mandates two command-line
options: -p (for specifying a prompt string) and -s (to suppress writing
of byte counts). This commit adds support for the former. Furthermore,
it also changes the default prompt string to an empty string (instead
of ": ") since this is also mandated by POSIX:
-p string Use string as the prompt string when in command mode.
By default, there shall be no prompt string.
function old new delta
ed_main 112 144 +32
packed_usage 34074 34097 +23
doCommands 1889 1887 -2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 55/-2) Total: 53 bytes
Signed-off-by: Sören Tempel <soeren+git@soeren-tempel.net>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/time.c')
0 files changed, 0 insertions, 0 deletions