summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-09-15 23:07:18 +0200
committerJim Meyering <meyering@redhat.com>2009-09-29 16:04:12 +0200
commita033e28737c1f6320bfc56b484253b61051bad85 (patch)
tree8f663e656092685e09aa5f655ca97b43345ced46 /NEWS
parentb7aaa0da8b47f4f373d3e0876bd540986278c6e2 (diff)
downloadcoreutils-a033e28737c1f6320bfc56b484253b61051bad85.tar.xz
stat: interpret "-" as standard input
* src/stat.c (do_stat): Interpret a command line argument of "-" to mean "standard input", like many other tools do. (do_statfs): Fail upon any attempt to use "-". * NEWS (Changes in behavior): Mention it. * tests/misc/stat-hyphen: New test, to exercise the above. * tests/Makefile.am (TESTS): Add misc/stat-hyphen.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 075c0fa5a..f1f73472d 100644
--- a/NEWS
+++ b/NEWS
@@ -48,6 +48,11 @@ GNU coreutils NEWS -*- outline -*-
GNU/Linux where link(2) creates hard links to symlinks, and -L on
BSD systems where link(2) follows symlinks.
+ stat: without -f, a command-line argument of "-" now means standard input.
+ With --file-system (-f), an argument of "-" is now rejected.
+ If you really must operate on a file named "-", specify it as
+ "./-" or use "--" to separate options from arguments.
+
** Improvements
rm: rewrite to use gnulib's fts