diff options
-rw-r--r-- | src/mkid.c | 11 | ||||
-rw-r--r-- | src/xtokid.c | 11 | ||||
-rwxr-xr-x | testsuite/files0-from | 5 |
3 files changed, 0 insertions, 27 deletions
@@ -352,17 +352,6 @@ main (int argc, char **argv) { struct file_link *flink; - if (files_from && strequ(files_from, "-") && strequ(files[i], "-")) - { - ok = false; - /* Give a better diagnostic in an unusual case: - printf - | wc --files0-from=- */ - error (0, 0, _("when reading file names from stdin, " - "no file name of %s allowed"), - quote ("-")); - continue; - } - /* Diagnose a zero-length file name. When it's one among many, knowing the record number may help. */ if (files[i][0] == '\0') diff --git a/src/xtokid.c b/src/xtokid.c index 6311827..1a11a76 100644 --- a/src/xtokid.c +++ b/src/xtokid.c @@ -232,17 +232,6 @@ main (int argc, char **argv) { struct file_link *flink; - if (files_from && strequ(files_from, "-") && strequ(files[i], "-")) - { - ok = false; - /* Give a better diagnostic in an unusual case: - printf - | wc --files0-from=- */ - error (0, 0, _("when reading file names from stdin, " - "no file name of %s allowed"), - quote ("-")); - continue; - } - /* Diagnose a zero-length file name. When it's one among many, knowing the record number may help. */ if (files[i][0] == '\0') diff --git a/testsuite/files0-from b/testsuite/files0-from index 8a7b834..ecc8f67 100755 --- a/testsuite/files0-from +++ b/testsuite/files0-from @@ -42,11 +42,6 @@ my @Tests = {ERR => "$prog: cannot open `missing' for reading: " . "No such file or directory\n"}], - # input file name of '-' - ['minus-in-stdin', '--files0-from=-', '<', {IN=>{f=>'-'}}, {EXIT=>1}, - {ERR => "$prog: when reading file names from stdin, no file name of" - . " `-' allowed\n" . $nothing_to_do}], - # empty input, regular file ['empty', '--files0-from=@AUX@', {AUX=>''}, {ERR => $nothing_to_do}], |