wget does not overwrite
Kim B. Heino
Kim.Heino at bluegiga.com
Tue Apr 24 13:21:15 UTC 2007
Hello,
On my normal Linux system:
"wget http://www.google.com/" writes "index.html". Doing it again writes
"index.html.1", and so on.
"wget -O index.html http://www.google.com/" writes to "index.html", always.
With BusyBox the result is different:
[root at ysi5 tmp]$ wget http://www.google.com/
Connecting to www.google.com[209.85.129.99]:80
index.html 100% |*****************************| 3244
--:--:-- ETA
[root at ysi5 tmp]$ wget http://www.google.com/
Connecting to www.google.com[209.85.129.99]:80
wget: index.html: File exists
[root at ysi5 tmp]$ wget -O index.html http://www.google.com/
Connecting to www.google.com[209.85.129.104]:80
wget: index.html: File exists
[root at ysi5 tmp]$
Is this intended behaviour? I'm running (very old) BusyBox 1.3.1, but by
quickly looking at the latest source, this has not changed. If nobody
objects changing this, I can write a patch for "-O" to overwrite.
More information about the busybox
mailing list