Discussion:
[Bug-wget] [bug #53750] Regex are ignored with ftp
Spencer
2018-04-25 11:58:20 UTC
Permalink
URL:
<http://savannah.gnu.org/bugs/?53750>

Summary: Regex are ignored with ftp
Project: GNU Wget
Submitted by: quantum7
Submitted on: Wed 25 Apr 2018 11:58:19 AM UTC
Category: Program Logic
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.19.4
Operating System: Mac OS
Reproducibility: Every Time
Fixed Release: None
Planned Release: None
Regression: None
Work Required: None
Patch Included: None

_______________________________________________________

Details:

The --reject-regex and --accept-regex options are ignored by wget during
recursive FTP downloads.

I would expect the following command to reject all files, but instead it
downloads the 9 small files from this public ftp server:

wget -r -nd --reject-regex='.*'
'ftp://ftp.rcsb.org/pub/pdb/data/status/20070425/'

The problem has been reported a few times on stack overflow:
-
https://unix.stackexchange.com/questions/379922/wget-regex-fails-getting-files-over-ftp
-
https://unix.stackexchange.com/questions/439931/wget-regex-options-ignored-over-ftp

Tested with 1.18 on Gentoo and 1.19.4 from Homebrew on OS 10.12




_______________________________________________________

Reply to this item at:

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

_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
Tim Ruehsen
2018-04-25 15:39:20 UTC
Permalink
Update of bug #53750 (project wget):

Status: None => Confirmed

_______________________________________________________

Follow-up Comment #1:

You are right, the FTP code branch simply doesn't apply the regexes given on
the command line.

_______________________________________________________

Reply to this item at:

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

_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
Darshit Shah
2018-11-13 00:08:12 UTC
Permalink
Update of bug #53750 (project wget):

Status: Confirmed => Ready for Merge
Assigned to: None => darnir
Operating System: Mac OS => None
Planned Release: None => 1.20

_______________________________________________________

Follow-up Comment #2:

I've sent a patch to the mailing lists that adds this support. It should be
available in the next release.

_______________________________________________________

Reply to this item at:

<https://savannah.gnu.org/bugs/?53750>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Loading...