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 LogicSeverity: 2 - Minor
Priority: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Originator Name: Darshit ShahOpen/Closed: Open
Release: trunkOperating System: GNU/Linux
Reproducibility: Every TimeFixed Release: None
Planned Release: NoneRegression: No
Work Required: NonePatch 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mllobet (Posted a comment)
  • -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.1-cleanup1