]> git.ipfire.org Git - thirdparty/coreutils.git/commit
stat: interpret "-" as standard input
authorJim Meyering <meyering@redhat.com>
Tue, 15 Sep 2009 21:07:18 +0000 (23:07 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 29 Sep 2009 14:04:12 +0000 (16:04 +0200)
commita033e28737c1f6320bfc56b484253b61051bad85
tree8f663e656092685e09aa5f655ca97b43345ced46
parentb7aaa0da8b47f4f373d3e0876bd540986278c6e2
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.
NEWS
src/stat.c
tests/Makefile.am
tests/misc/stat-hyphen [new file with mode: 0755]