tr: support octal ranges
authorRichard Genoud <richard.genoud@gmail.com>
Mon, 26 Oct 2015 09:10:28 +0000 (10:10 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 26 Oct 2015 16:18:07 +0000 (17:18 +0100)
commitd683c5c2f1493c2b0856a5f8751508836b0988d5
treeb9ba390323f272c76f7a316223a25c6b1760797e
parent028524317d8d0011ed38e86e507a06738a5b5a97
tr: support octal ranges

now, we can do printf "a\tb\tcdef\n" | ./busybox tr -d "\1-\14b-e"
af

and bonus, we save some bytes.

function                                             old     new   delta
expand                                               718     699     -19
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-19)             Total: -19
bytes

Signed-off-by: Richard Genoud <richard.genoud@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
coreutils/tr.c