diff options
author | Jim Meyering <meyering@redhat.com> | 2011-12-11 11:59:31 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-12-12 12:19:55 +0100 |
commit | a3fee8b6afdbb70317d2124d5a3bb0d2887ab31b (patch) | |
tree | ea6ac15d733cedc9f8a201da7b65b43a87f50078 /tests/Makefile.am | |
parent | da4793e949363242400ad10bc739e3db4319755f (diff) | |
download | coreutils-a3fee8b6afdbb70317d2124d5a3bb0d2887ab31b.tar.xz |
ls: give a more useful diagnostic for a bogus --time-style arg
* src/ls.c (decode_switches): Replace our use of XARGMATCH
with open-coded version so that we can give a better diagnostic.
* tests/ls/time-style-diag: New file.
* tests/Makefile.am (TESTS): Add it.
Reported by Dan Jacobson in http://bugs.gnu.org/10253
with suggestions from Eric Blake and Paul Eggert.
Diffstat (limited to 'tests/Makefile.am')
-rw-r--r-- | tests/Makefile.am | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 48c33cb99..23cb70fa4 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -441,6 +441,7 @@ TESTS = \ ls/stat-free-symlinks \ ls/stat-vs-dirent \ ls/symlink-slash \ + ls/time-style-diag \ ls/x-option \ mkdir/p-1 \ mkdir/p-2 \ |