diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-08-09 13:52:36 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-08-09 13:52:36 +0200 |
commit | 1f41c885fcafc67c9e957b74ab9d223e09ff949a (patch) | |
tree | 4fc87e316812afabb48a72fee3ce8edaba1c9986 /libbb/printable.c | |
parent | 3bef5d89b0c667e9fb7d1d9b44ba9b30d4d084e4 (diff) | |
download | busybox-1f41c885fcafc67c9e957b74ab9d223e09ff949a.tar.gz |
hush: implement -d DELIM option for 'read'
The POSIX standard only requires the 'read' builtin to handle '-r':
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/read.html
However, Bash introduced the option '-d <DELIM>' to override IFS for
just one invocation, and it is quite useful.
We already support this in ash, let's add it to hush, too.
function old new delta
builtin_read 263 284 +21
.rodata 163587 163589 +2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 23/0) Total: 23 bytes
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/printable.c')
0 files changed, 0 insertions, 0 deletions