projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52c9689
)
Give a proper diagnostic for e.g., `fmt -c -72'.
author
Jim Meyering
<jim@meyering.net>
Fri, 2 May 2003 19:52:34 +0000
(19:52 +0000)
committer
Jim Meyering
<jim@meyering.net>
Fri, 2 May 2003 19:52:34 +0000
(19:52 +0000)
tests/fmt/basic
patch
|
blob
|
history
diff --git
a/tests/fmt/basic
b/tests/fmt/basic
index 6429e00d87b25a18a03f0537b718b040335869d3..b335ab9ca793d8c07cc608c7f00581750c7fea29 100755
(executable)
--- a/
tests/fmt/basic
+++ b/
tests/fmt/basic
@@
-34,6
+34,10
@@
my @Tests =
['no-file', 'no-such-file',
{ERR => "fmt: cannot open `no-such-file' for reading:"
. " No such file or directory\n"}, {EXIT => 1}],
+ ['obs-1', '-c -72',
+ {ERR => "fmt: invalid option -- 7; -NUMBER is recognized only when it"
+ . " is the first\noption; use -w N instead\n"
+ . "Try `fmt --help' for more information.\n" }, {EXIT => 1}],
);
my $save_temps = $ENV{DEBUG};