When doing a 'wget -O -' turn on the quiet flag, lest the status bar

noise get mingled with the retrieved webpage.
 -Erik
This commit is contained in:
Eric Andersen 2001-05-13 00:55:54 +00:00
parent ddb00545b7
commit 95a349f427
2 changed files with 4 additions and 2 deletions

View File

@ -234,6 +234,7 @@ int wget_main(int argc, char **argv)
*/
if (strcmp(fname_out, "-") == 0) {
output = stdout;
quiet_flag = TRUE;
} else {
output = xfopen(fname_out, (do_continue ? "a" : "w"));
}
@ -777,7 +778,7 @@ progressmeter(int flag)
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: wget.c,v 1.37 2001/05/09 19:15:46 kraai Exp $
* $Id: wget.c,v 1.38 2001/05/13 00:55:54 andersen Exp $
*/

3
wget.c
View File

@ -234,6 +234,7 @@ int wget_main(int argc, char **argv)
*/
if (strcmp(fname_out, "-") == 0) {
output = stdout;
quiet_flag = TRUE;
} else {
output = xfopen(fname_out, (do_continue ? "a" : "w"));
}
@ -777,7 +778,7 @@ progressmeter(int flag)
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: wget.c,v 1.37 2001/05/09 19:15:46 kraai Exp $
* $Id: wget.c,v 1.38 2001/05/13 00:55:54 andersen Exp $
*/