bugGNU Wget - Bugs: bug #34325, --exclude-directories wildcards do...


bug #34325: --exclude-directories wildcards do not work properly

Submitted by:  Martin F. Krafft <madduck>
Submitted on:  Sun 18 Sep 2011 07:46:52 AM UTC  
Category: Program LogicSeverity: 3 - Normal
Priority: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Originator Name: Open/Closed: Open
Release: trunkOperating System: GNU/Linux
Reproducibility: Every TimeFixed Release: None
Planned Release: NoneRegression: None
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.


Sun 18 Sep 2011 07:49:16 AM UTC, comment #2:

Grr, I dislike markup. Anyway, using + instead of the asterisk:

… -A +.txt -X +/2011/+

Martin F. Krafft <madduck>
Sun 18 Sep 2011 07:48:26 AM UTC, comment #1:

The command-line got mangled and should have been

… -A \.txt -X \/2011/\* …

Martin F. Krafft <madduck>
Sun 18 Sep 2011 07:46:52 AM UTC, original submission:

Try this (stupid example):

wget -m -np -A .txt -X /2011/* http://www.debian.org/News/

wget still traverses the entire 2011 hierarchy, even though it
should really just ignore it. As a reminder, here is the info page
entry for -X:

`-X LIST' `--exclude-directories=LIST' Specify a comma-separated
list of directories you wish to exclude from download (see
"Directory-Based Limits"). Elements of LIST may contain

It says "exclude from download", which may mean that it should still
crawl the contents for links to contents outside of the listed
directories. However, in the context of its counterpart -I, which
says "follow when downloading", I think the intended use is to not
follow links into the listed directories.

Martin F. Krafft <madduck>


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

Attach File(s):

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 madduck (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