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
..
libcoreutils whitespace and comment format fixes, no code changes 2017-10-05 15:19:25 +02:00
basename.c whitespace and comment format fixes, no code changes 2017-10-05 15:19:25 +02:00
cat.c cat,nl: fix handling of open errors 2018-11-29 11:44:10 +01:00
chgrp.c config: deindent all help texts 2017-07-21 09:50:55 +02:00
chmod.c getopt32: remove opt_complementary 2017-08-08 21:55:02 +02:00
chown.c chown: fix a mistake in opt_complementary change 2017-12-31 17:59:16 +01:00
chroot.c make 17 state-changing execing applets (ex: "nice PROG ARGS") noexec 2017-08-04 19:55:01 +02:00
cksum.c cksum: code shrink 2018-02-01 11:44:52 +01:00
comm.c getopt32: remove opt_complementary 2017-08-08 21:55:02 +02:00
Config.src restore documentation on the build config language 2018-06-06 15:16:48 +02:00
cp.c cp: placate gcc8 2018-08-01 18:29:41 +02:00
cut.c getopt32: remove opt_complementary 2017-08-08 21:55:02 +02:00
date.c date: maybe_set_utc only once 2017-10-05 12:53:25 +02:00
dd.c dd: do not have 'ocount' variable if ibs/obs support is not enabled 2018-10-30 17:04:52 +01:00
df.c df: do "rootfs" check sooner 2018-02-23 17:08:32 +01:00
dirname.c config: deindent all help texts 2017-07-21 09:50:55 +02:00
dos2unix.c getopt32: remove opt_complementary 2017-08-08 21:55:02 +02:00
du.c getopt32: remove opt_complementary 2017-08-08 21:55:02 +02:00
echo.c do not use `a' quoting style in comments 2017-08-02 14:26:33 +02:00
env.c env: -u option fails due to typo 2017-12-25 21:36:05 +01:00
expand.c getopt32: remove opt_complementary 2017-08-08 21:55:02 +02:00
expr.c expr: make it NOEXEC 2017-08-07 23:23:18 +02:00
factor.c config: deindent all help texts 2017-07-21 09:50:55 +02:00
false.c config: deindent all help texts 2017-07-21 09:50:55 +02:00
fold.c whitespace and comment format fixes, no code changes 2017-10-05 15:19:25 +02:00
fsync.c config: deindent all help texts 2017-07-21 09:50:55 +02:00
head.c config: deindent all help texts 2017-07-21 09:50:55 +02:00
hostid.c config: deindent all help texts 2017-07-21 09:50:55 +02:00
id_test.sh id: coreutils compat by Tito + test script 2008-10-29 00:27:31 +00:00
id.c getopt32: remove opt_complementary 2017-08-08 21:55:02 +02:00
install.c install: fix "-D -t DIR1/DIR2/DIR3" creating only DIR1/DIR2, closes 11106 2018-06-22 18:59:10 +02:00
Kbuild.src shells: make hush test optional, rename ASH_BUILTIN_foo -> ASH_foo 2017-01-10 15:13:30 +01:00
link.c libarchive: do not extract unsafe symlinks unless $EXTRACT_UNSAFE_SYMLINKS=1 2017-08-10 11:52:42 +02:00
ln.c getopt32: remove opt_complementary 2017-08-08 21:55:02 +02:00
logname.c config: deindent all help texts 2017-07-21 09:50:55 +02:00
ls.c unzip: use printable_string() for printing filenames 2018-09-30 16:56:56 +02:00
md5_sha1_sum.c md5sum: use config help text similar to other "sum" tools 2018-03-08 12:49:39 +01:00
mkdir.c getopt32: remove applet_long_options 2017-08-08 17:09:40 +02:00
mkfifo.c config: deindent all help texts 2017-07-21 09:50:55 +02:00
mknod.c mknod: better --help, much clearer code 2018-01-08 11:22:37 +01:00
mktemp.c whitespace and comment format fixes, no code changes 2017-10-05 15:19:25 +02:00
mv.c libbb: rename bb_ask -> bb_ask_noecho, bb_ask_confirmation -> bb_ask_y_confirmation 2018-04-07 15:08:12 +02:00
nice.c libbb.h: always include sys/resource.h 2018-04-08 17:23:27 +02:00
nl.c cat,nl: fix handling of open errors 2018-11-29 11:44:10 +01:00
nohup.c whitespace and comment format fixes, no code changes 2017-10-05 15:19:25 +02:00
nproc.c nproc: implement --all --ignore=N 2018-07-06 16:19:04 +02:00
od_bloaty.c od: move address_fmt[] from data to globals. 8 less bytes in data section 2018-02-22 12:14:55 +01:00
od.c do not use `a' quoting style in comments 2017-08-02 14:26:33 +02:00
paste.c config: deindent all help texts 2017-07-21 09:50:55 +02:00
printenv.c config: deindent all help texts 2017-07-21 09:50:55 +02:00
printf.c printf: fix printf "%u\n" +18446744073709551614 2018-10-30 23:24:18 +01:00
pwd.c config: deindent all help texts 2017-07-21 09:50:55 +02:00
readlink.c realpath,readlink -f: coreutils compat, closes 11021 2018-05-24 17:31:00 +02:00
realpath.c realpath,readlink -f: coreutils compat, closes 11021 2018-05-24 17:31:00 +02:00
rm.c getopt32: remove opt_complementary 2017-08-08 21:55:02 +02:00
rmdir.c getopt32: remove applet_long_options 2017-08-08 17:09:40 +02:00
seq.c NOFORK fixes 2017-08-02 16:37:39 +02:00
shred.c config: deindent all help texts 2017-07-21 09:50:55 +02:00
shuf.c regularize format of source file headers, no code changes 2017-09-18 16:28:43 +02:00
sleep.c extend fractional duration support to "top -d N.N" and "timeout" 2018-08-03 18:17:12 +02:00
sort.c sort: add -V "sort version" 2018-07-08 01:37:54 +02:00
split.c getopt32: remove opt_complementary 2017-08-08 21:55:02 +02:00
stat.c stat: fix a typo: s/romfs/ramfs/, closes 10876 2018-03-31 02:45:22 +02:00
stty.c whitespace and comment format fixes, no code changes 2017-10-05 15:19:25 +02:00
sum.c config: deindent all help texts 2017-07-21 09:50:55 +02:00
sync.c getopt32: remove opt_complementary 2017-08-08 21:55:02 +02:00
tac.c config: deindent all help texts 2017-07-21 09:50:55 +02:00
tail.c getopt32: remove opt_complementary 2017-08-08 21:55:02 +02:00
tee.c config: deindent all help texts 2017-07-21 09:50:55 +02:00
test_ptr_hack.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
test.c shell: add comments about [[, no code changes 2018-04-10 15:25:41 +02:00
timeout.c timeout: fix arguments to match coreutils 2018-08-03 18:28:17 +02:00
touch.c getopt32: remove applet_long_options 2017-08-08 17:09:40 +02:00
tr.c whitespace and comment format fixes, no code changes 2017-10-05 15:19:25 +02:00
true.c config: deindent all help texts 2017-07-21 09:50:55 +02:00
truncate.c getopt32: remove opt_complementary 2017-08-08 21:55:02 +02:00
tty.c new NOFORKs: clear, nproc, tty, uname, arch, unlink, which 2017-08-03 03:29:32 +02:00
uname.c randomconfig fixes 2017-12-31 17:30:02 +01:00
uniq.c config: deindent all help texts 2017-07-21 09:50:55 +02:00
unlink.c whitespace and comment format fixes, no code changes 2017-10-05 15:19:25 +02:00
usleep.c NOFORK fixes 2017-08-02 16:37:39 +02:00
uudecode.c getopt32: remove opt_complementary 2017-08-08 21:55:02 +02:00
uuencode.c whitespace and comment format fixes, no code changes 2017-10-05 14:40:24 +02:00
wc.c config: deindent all help texts 2017-07-21 09:50:55 +02:00
who.c whitespace and comment format fixes, no code changes 2017-10-05 15:19:25 +02:00
whoami.c config: deindent all help texts 2017-07-21 09:50:55 +02:00
yes.c NOFORK fixes 2017-08-02 16:37:39 +02:00