diff --git a/ChangeLog-2008 b/ChangeLog-2008 index aac9feb..5975e20 100644 --- a/ChangeLog-2008 +++ b/ChangeLog-2008 @@ -1,3 +1,13 @@ +2008-03-03 Ondrej Vasik + + rmdir, install: write --verbose output to stdout, not stderr. + * src/rmdir.c (main): write to stdout, not stderr + * src/rmdir.c (remove_parents): write to stdout, not stderr + * src/install.c (announce_mkdir): write to stdout, not stderr + * doc/coreutils.texi: mention that shred verbose output is + to stderr + * NEWS: Mention that change. + 2008-02-07 Jim Meyering We *do* need two different version files. diff --git a/NEWS b/NEWS index b549513..1c9510f 100644 --- a/NEWS +++ b/NEWS @@ -37,7 +37,8 @@ GNU coreutils NEWS -*- outline -*- ** Consistency - mkdir and split now write --verbose output to stdout, not stderr. + mkdir, split, install and rmdir now write --verbose output to stdout, + not stderr. * Noteworthy changes in release 6.10 (2008-01-22) [stable] diff --git a/doc/coreutils.texi b/doc/coreutils.texi index df6792d..e3a0d50 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -8190,7 +8190,7 @@ If a file has multiple links, only the named links will be removed. @itemx --verbose @opindex -v @opindex --verbose -Display status updates as sterilization proceeds. +Display to standard error all status updates as sterilization proceeds. @item -x @itemx --exact diff --git a/src/install.c b/src/install.c index db08751..b594a53 100644 --- a/src/install.c +++ b/src/install.c @@ -1,5 +1,5 @@ /* install - copy files and set attributes - Copyright (C) 89, 90, 91, 1995-2007 Free Software Foundation, Inc. + Copyright (C) 89, 90, 91, 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 @@ -762,7 +762,7 @@ announce_mkdir (char const *dir, void *options) { struct cp_options const *x = options; if (x->verbose) - error (0, 0, _("creating directory %s"), quote (dir)); + printf (_("%s: creating directory %s\n"), program_name, quote (dir)); } /* Make ancestor directory DIR, whose last file name component is diff --git a/src/rmdir.c b/src/rmdir.c index bb1a0c8..abbf87f 100644 --- a/src/rmdir.c +++ b/src/rmdir.c @@ -1,6 +1,6 @@ /* rmdir -- remove directories - Copyright (C) 90, 91, 1995-2002, 2004, 2005, 2006, 2007 Free Software + Copyright (C) 90, 91, 1995-2002, 2004-2008 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify @@ -134,7 +134,7 @@ remove_parents (char *dir) /* Give a diagnostic for each attempted removal if --verbose. */ if (verbose) - error (0, 0, _("removing directory, %s"), quote (dir)); + printf(_("%s: removing directory, %s\n"), program_name, quote (dir)); ok = (rmdir (dir) == 0); @@ -233,7 +233,7 @@ main (int argc, char **argv) /* Give a diagnostic for each attempted removal if --verbose. */ if (verbose) - error (0, 0, _("removing directory, %s"), dir); + printf(_("%s: removing directory, %s\n"), program_name, dir); if (rmdir (dir) != 0) {