bug-wget
[Top][All Lists]
Advanced

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

[Bug-wget] question regarding --adjust-extension behaviour


From: Tim Ruehsen
Subject: [Bug-wget] question regarding --adjust-extension behaviour
Date: Wed, 28 Nov 2012 11:30:37 +0100
User-agent: KMail/1.13.7 (Linux/3.2.0-4-amd64; KDE/4.8.4; x86_64; ; )

Hi,

I am just implementing -E/--adjust-extension/--html-extension in Mget and 
stumbled over a Wget 1.14 behaviour that I didn't expect.

In the current directory there are index.html and index.html.[1-9] (.1, .2, 
..., .9).

I expect 'wget -E www.example.com' to generate a index.html.10.
What I get is index.html.9.html.
Hmmm, well...

Issuing a second 'wget -E www.example.com' generates a index.html.9.1.html.
Wow !

What I expected is that -E is 'ignored' in this case since index.html already 
ends with '.html'. So the normal 'clobbering' procedure should take place with 
generating index.html.10 and index.html.11.

Is that behaviour by intention or by accident ?

Regards, Tim



reply via email to

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