aboutsummaryrefslogtreecommitdiffstats
path: root/src/split.c
diff options
context:
space:
mode:
authorSteven Schubiger <schubiger@gmail.com>2008-02-06 08:25:24 +0100
committerJim Meyering <meyering@redhat.com>2008-02-07 08:26:48 +0100
commita09dadf1004aa07e2c31d95d6c80247fec1fa646 (patch)
treec2d51188fa2964fce85927f5d2dad057fb67b17c /src/split.c
parentMakefile.maint (announcement): Remove stale comment. (diff)
downloadcoreutils-a09dadf1004aa07e2c31d95d6c80247fec1fa646.tar.gz
coreutils-a09dadf1004aa07e2c31d95d6c80247fec1fa646.zip
mkdir, split: write --verbose output to stdout, not stderr.
* src/mkdir.c (verbose_output): New function. (announce_mkdir): Use it. * src/split.c (usage): Update. * src/split.c (cwrite): Write to stdout, not stderr. * doc/coreutils.texi (split invocation): Remove the mention of --verbose output being printed to stderr. * tests/mkdir/p-v: Redirect stdout, not stderr. * tests/misc/split-a: Likewise. * NEWS: Mention this change. * TODO: Remove this item.
Diffstat (limited to 'src/split.c')
-rw-r--r--src/split.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/split.c b/src/split.c
index 5807a1ccf..f84d40e41 100644
--- a/src/split.c
+++ b/src/split.c
@@ -1,5 +1,5 @@
/* split.c -- split a file into pieces.
- Copyright (C) 1988, 1991, 1995-2007 Free Software Foundation, Inc.
+ Copyright (C) 1988, 1991, 1995-2008 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -122,8 +122,8 @@ Mandatory arguments to long options are mandatory for short options too.\n\
-l, --lines=NUMBER put NUMBER lines per output file\n\
"), DEFAULT_SUFFIX_LENGTH);
fputs (_("\
- --verbose print a diagnostic to standard error just\n\
- before each output file is opened\n\
+ --verbose print a diagnostic just before each\n\
+ output file is opened\n\
"), stdout);
fputs (HELP_OPTION_DESCRIPTION, stdout);
fputs (VERSION_OPTION_DESCRIPTION, stdout);
@@ -208,7 +208,7 @@ cwrite (bool new_file_flag, const char *bp, size_t bytes)
next_file_name ();
if (verbose)
- fprintf (stderr, _("creating file %s\n"), quote (outfile));
+ fprintf (stdout, _("creating file %s\n"), quote (outfile));
output_desc = open (outfile,
O_WRONLY | O_CREAT | O_TRUNC | O_BINARY,
(S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP