cURL / Mailing Lists / curl-users / Single Mail

curl-users

7.9.8 bug: --silent doesn't mute multiurl output

From: Sven Neuhaus <sn_at_neopoly.com>
Date: 03 Sep 2002 18:16:08 +0200

Hi,

the --silent option still has some output coming for multiurl operation.
The attached patch to main.c is very simple, I haven't tested it yet,
however. I used the 7.9.8 tarball to make the patch.
I also filed this bug in the sourceforge bug database at
https://sourceforge.net/tracker/index.php?func=detail&aid=604041&group_id=976&atid=100976

Cheers,
-Sven

--- src/main.c.orig Tue Jun 11 17:10:39 2002
+++ src/main.c Tue Sep 3 18:07:44 2002
@@ -2452,7 +2452,7 @@
         config->conf |= CONF_NOPROGRESS;
     
 
- if (urlnum > 1) {
+ if (urlnum > 1 && !(config->conf&CONF_MUTE)) {
         fprintf(stderr, "\n[%d/%d]: %s --> %s\n",
                 i+1, urlnum, url, outfile ? outfile : "<stdout>");
         if (separator)

-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
Received on 2002-09-03