Package: file Version: 1:5.22+15-2 Severity: important Dear Maintainer,
file -b --mime-type NONEXISTING_FILE > mimetype.txt && echo "success" will print "success" even though NONEXISTING_FILE does not exist, and the string "cannot open `NONEXISTING_FILE' (No such file or directory)" will be written to mimetype.txt, and nothing will be printed to stderr. What I expected: Nothing be written to mimetype.txt, an error message be written to stderr, "success" not be printed. -- System Information: Distributor ID: Raspbian Description: Raspbian GNU/Linux 8.0 (jessie) Release: 8.0 Codename: jessie Architecture: armv7l Kernel: Linux 4.1.13-v7+ (SMP w/4 CPU cores; PREEMPT) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages file depends on: ii libc6 2.19-18+deb8u1 ii libmagic1 1:5.22+15-2 ii zlib1g 1:1.2.8.dfsg-2 file recommends no packages. file suggests no packages. -- no debconf information