bugGNU Wget - Bugs: bug #44516, Wget does not understand -o- to...

 
 

bug #44516: Wget does not understand -o- to mean log to stdout

Submitted by:  Darshit Shah <darnir>
Submitted on:  Thu 12 Mar 2015 05:05:13 AM UTC  
 
Category:  Program Logic Severity:  2 - Minor
Priority:  5 - Normal Status:  None
Privacy:  Public Assigned to:  None
Originator Name:  Darshit Shah Open/Closed:  Open
Release:  trunk Operating System:  GNU/Linux
Reproducibility:  Every Time Fixed Release:  None
Planned Release:  None Regression:  No
Work Required:  None Patch Included:  No

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 13 Mar 2015 01:11:12 AM UTC, comment #1:

Attempted fix is here https://lists.gnu.org/archive/html/bug-wget/2015-03/msg00066.html now when doing -o- the logging goes to stdout.

Miquel Llobet <mllobet>
Thu 12 Mar 2015 05:05:13 AM UTC, original submission:

In the *nix world, we assume '-' to imply stdout/stdin based upon the context. Wget correctly reads -O- to mean that the downloaded file should be outputted to stdout. However, Wget does not understand -o- to mean, "Log to stdout" instead of stderr.

E.g.:
`wget http://www.example.com`
will cause the logging to stderr and the file is downloaded as index.html

`wget -O- http://www.example.com`
will cause the logging to stderr and the downloaded file is printed to stdout

`wget -o- http://www.example.com`
will cause the logging to be saved to a file called "-" and the downloaded file is saved as index.html

However, in the last case, the logging should have gone to stdout. It should be saved to a file called "-" if the option was -o ./-

Darshit Shah <darnir>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mllobet (Posted a comment)
  • -email is unavailable- added by darnir (Submitted the item)
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.3