diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2006-08-15 23:41:24 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2006-08-15 23:41:24 +0000 |
commit | 9e2b97bf352ad1a04ee6c28e2cd2668b63bfec84 (patch) | |
tree | 308cea2257cc1665e4fc5e2d33f93a7a78cd1c1d /NEWS | |
parent | 5ce0b45a43fc2de8862a439b6e6281fdd55e27ed (diff) | |
download | coreutils-9e2b97bf352ad1a04ee6c28e2cd2668b63bfec84.tar.xz |
* NEWS: Mention that df exits with nonzero status if it generates
no output. This change was in 6.0 but inadvertently unmentioned.
* doc/coreutils.texi (df invocation): df exits nonzero if it outpus
nothing.
* src/df.c (file_systems_processed): Renamed from n_valid_args, and now
a boolean.
(show_dev): Don't set it until we actually output something.
Print the header if this is the first output.
(main): Don't print a header, as that is now show_dev's job.
* tests/misc/Makefile.am (TESTS): Add df.
* tests/misc/df: New file.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -59,10 +59,16 @@ GNU coreutils NEWS -*- outline -*- date: a command like date -d '2006-04-23 21 days ago' would print the wrong date in some time zones. (see the test for an example) - df now considers "none" and "proc" file systems to be dummies and - therefore does not normally display them. Also, inaccessible file - systems (which can be caused by shadowed mount points or by chrooted - bind mounts) are now dummies, too. + df changes: + + df now considers "none" and "proc" file systems to be dummies and + therefore does not normally display them. Also, inaccessible file + systems (which can be caused by shadowed mount points or by + chrooted bind mounts) are now dummies, too. + + df now fails if it generates no output, so you can inspect the + exit status of a command like "df -t ext3 -t reiserfs DIR" to test + whether DIR is on a file system of type "ext3" or "reiserfs". expr no longer complains about leading ^ in a regular expression (the anchor is ignored), or about regular expressions like A** (the |