busybox/coreutils
Denys Vlasenko c100535571 cat,nl: fix handling of open errors
$ cat -n does_not_exist; echo $?
cat: does_not_exist: No such file or directory
1

function                                             old     new   delta
print_numbered_lines                                 118     129     +11
nl_main                                              196     201      +5
cat_main                                             421     425      +4
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 20/0)               Total: 20 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2018-11-29 11:44:10 +01:00
..
2018-11-29 11:44:10 +01:00
2017-08-08 21:55:02 +02:00
2018-02-01 11:44:52 +01:00
2017-08-08 21:55:02 +02:00
2018-08-01 18:29:41 +02:00
2017-08-08 21:55:02 +02:00
2017-10-05 12:53:25 +02:00
2018-02-23 17:08:32 +01:00
2017-08-08 21:55:02 +02:00
2017-08-08 21:55:02 +02:00
2017-12-25 21:36:05 +01:00
2017-08-08 21:55:02 +02:00
2017-08-08 21:55:02 +02:00
2017-08-08 21:55:02 +02:00
2018-04-08 17:23:27 +02:00
2018-11-29 11:44:10 +01:00
2018-07-06 16:19:04 +02:00
2017-08-08 21:55:02 +02:00
2018-07-08 01:37:54 +02:00
2017-08-08 21:55:02 +02:00
2017-08-08 21:55:02 +02:00
2017-08-08 21:55:02 +02:00
2017-08-08 21:55:02 +02:00
2017-12-31 17:30:02 +01:00
2017-08-08 21:55:02 +02:00