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

 
 

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

Submitter:  Darshit Shah <darnir>
Submitted:  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
* Mandatory Fields

Add a New Comment Rich Markup
   

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 www.example.com`
will cause the logging to stderr and the file is downloaded as index.html

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

`wget -o- 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>
Group 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)
  •  

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-269c.
    Corresponding source code