summaryrefslogtreecommitdiff
path: root/doc/coreutils.texi
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2006-08-15 23:41:24 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2006-08-15 23:41:24 +0000
commit9e2b97bf352ad1a04ee6c28e2cd2668b63bfec84 (patch)
tree308cea2257cc1665e4fc5e2d33f93a7a78cd1c1d /doc/coreutils.texi
parent5ce0b45a43fc2de8862a439b6e6281fdd55e27ed (diff)
downloadcoreutils-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 'doc/coreutils.texi')
-rw-r--r--doc/coreutils.texi4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index bf4d32f37..12215c3c1 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -9426,6 +9426,10 @@ Ignored; for compatibility with System V versions of @command{df}.
@end table
@exitstatus
+Failure includes the case where no output is generated, so you can
+inspect the exit status of a command like @samp{df -t ext3 -t reiserfs
+@var{dir}} to test whether @var{dir} is on a file system of type
+@samp{ext3} or @samp{reiserfs}.
@node du invocation