[Bug-wget] --mirror sometimes ignores -np

2011-04-20 Thread Mojca Miklavec
Dear list,

when I try to run
wget -np --mirror --progress=bar -nH --cut-dirs=1 -erobots=off
--reject=index.html* http://www.w32tex.org/docs
the command will try to fetch files from /icons and all other folders
despite the -np switch. The behaviour gets fixed if I use
http://www.w32tex.org/docs/; (if I add trailing slash), but I still
find it very weird and I think that this should not happen.

Indeed it doesn't happen on some other websites that I tried, but I'm
not sure about the exact recipe to reproduce the behaviour.

Mojca



Re: [Bug-wget] --mirror sometimes ignores -np

2011-04-20 Thread Giuseppe Scrivano
Hi Mojca,

it was already reported here:

http://savannah.gnu.org/bugs/index.php?20519

On the same page you can find an explanation why it behaves this way.

Cheers,
Giuseppe



Mojca Miklavec mojca.miklavec.li...@gmail.com writes:

 Dear list,

 when I try to run
 wget -np --mirror --progress=bar -nH --cut-dirs=1 -erobots=off
 --reject=index.html* http://www.w32tex.org/docs
 the command will try to fetch files from /icons and all other folders
 despite the -np switch. The behaviour gets fixed if I use
 http://www.w32tex.org/docs/; (if I add trailing slash), but I still
 find it very weird and I think that this should not happen.

 Indeed it doesn't happen on some other websites that I tried, but I'm
 not sure about the exact recipe to reproduce the behaviour.

 Mojca