bug-wget
[Top][All Lists]
Advanced

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

[Bug-wget] Wget on Windows handling of wildcards


From: Sam Habiel
Subject: [Bug-wget] Wget on Windows handling of wildcards
Date: Tue, 5 Jun 2018 14:16:27 -0400

First time poster.

I have a wget command that has a -A flag that contains a wildcard.
It's '*.DAT'. That works fine on Linux. I am trying to get the same
thing to run on Windows, but *.DAT keeps getting expanded by wget (cmd
does no expansion itself). There is no way that I found of suppressing
that. I think I tried everything: single quotes, double quotes, escape
* with ^ (cmd escape char), etc.

The end effect of this is that the first time I run the command, it
works, because wget tries expanding *.DAT and fails, so it sends -A as
*.DAT. If I run the command from the folder that contains the *.DAT
files, it will expand them into arguments.

I did not read the wget source, but I suspect that there is a problem there.

For reference, here's the whole command:

wget -rNndp -A "*.DAT"
"https://foia-vista.osehra.org:443/Patches_By_Application/PSN-NATIONAL
DRUG FILE (NDF)/PPS_DATS/" -P .

Run it twice on Windows to see the problem.

--Sam



reply via email to

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