bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-wget] [bug #52066] wget should ignore or implement Gnus syntax exte


From: Tim Landscheidt
Subject: [Bug-wget] [bug #52066] wget should ignore or implement Gnus syntax extensions for ~/.netrc
Date: Tue, 19 Sep 2017 23:18:46 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

URL:
  <http://savannah.gnu.org/bugs/?52066>

                 Summary: wget should ignore or implement Gnus syntax
extensions for ~/.netrc
                 Project: GNU Wget
            Submitted by: scfcde
            Submitted on: Wed 20 Sep 2017 03:18:45 AM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.18
        Operating System: GNU/Linux
         Reproducibility: Every Time
           Fixed Release: None
         Planned Release: None
              Regression: No
           Work Required: None
          Patch Included: No

    _______________________________________________________

Details:

Gnus extends the syntax for ~/.netrc by adding two keywords: "force" and
"port" (cf.
http://www.gnu.org/software/emacs/manual/html_node/gnus/NNTP.html#index-nntp_002dauthinfo_002dfunction-2003).
 Using a ~/.netrc with for example "port" keywords causes wget to complain:

| address@hidden ~]$ wget -O /dev/null https://www.gnu.org/
| --2017-09-20 03:01:57--  https://www.gnu.org/
| wget: /home/tim/.netrc:3: unbekannter Wortteil »port«
| wget: /home/tim/.netrc:3: unbekannter Wortteil »25«
| wget: /home/tim/.netrc:4: unbekannter Wortteil »pop«
| wget: /home/tim/.netrc:4: unbekannter Wortteil »110«
| Auflösen des Hostnamens »www.gnu.org (www.gnu.org)« … 208.118.235.148,
2001:4830:134:3::a
| Verbindungsaufbau zu www.gnu.org (www.gnu.org)|208.118.235.148|:443 …
verbunden.
| HTTP-Anforderung gesendet, auf Antwort wird gewartet … 200 OK
| Länge: nicht spezifiziert [text/html]
| Wird in »»/dev/null«« gespeichert.

| /dev/null                                     [  <=>                        
                                                        ]  24,56K  69,5KB/s   
in 0,4s    

| 2017-09-20 03:01:58 (69,5 KB/s) - »/dev/null« gespeichert [25151]

| address@hidden ~]$

However, it is easy to work around this issue if one does never use ~/.netrc
for wget purposes by setting "netrc = off" in ~/.wgetrc:

| address@hidden ~]$ echo 'netrc = off' > .wgetrc && wget -O /dev/null
https://www.gnu.org/
| --2017-09-20 03:02:14--  https://www.gnu.org/
| Auflösen des Hostnamens »www.gnu.org (www.gnu.org)« … 208.118.235.148,
2001:4830:134:3::a
| Verbindungsaufbau zu www.gnu.org (www.gnu.org)|208.118.235.148|:443 …
verbunden.
| HTTP-Anforderung gesendet, auf Antwort wird gewartet … 200 OK
| Länge: nicht spezifiziert [text/html]
| Wird in »»/dev/null«« gespeichert.

| /dev/null                                     [  <=>                        
                                                        ]  24,56K  70,1KB/s   
in 0,4s    

| 2017-09-20 03:02:15 (70,1 KB/s) - »/dev/null« gespeichert [25151]

| address@hidden ~]$

It would be much better if wget supported the Gnus syntax extensions natively.
 For most practical purposes, ignoring "force" and "port" keywords would
probably be enough as entries with those keywords are unlikely intended for
wget, but of course implementing the semantics for wget as well would be even
better.

AFAICT, this issue also applies to wget2.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?52066>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]