-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Mauro Tortonesi wrote: > On Tuesday 20 November 2007 20:38:13 Micah Cowan wrote: > >> Be advised, though, that -O doesn't simply mean "make the name of the >> downloaded result `filename'"; it means "act as if you're redirecting output >> to a file named `filename'". In particular, this means that such things as >> timestamping, and multiple URLs, may not work as you expect. > > micah, > > i believe this text is a good candidate for inclusion in the man page.
Heh, I turned your suggestion into a bug... and then, now that I've had a chance to take a closer look, I've discovered I already added some clarifying text to the -O option's description. How's this look? http://hg.addictivecode.org/wget/1.11/rev/5e5eae3f8d9f <<< Use of `-O' is _not_ intended to mean simply "use the name FILE instead of the one in the URL;" rather, it is analogous to shell redirection: `wget -O file http://foo' is intended to work like`wget -O - http://foo > file'; `file' will be truncated immediately, and _all_ downloaded content will be written there. Note that a combination with `-k' is only permitted when downloading a single document, and combination with any of `-r',`-p', or `-N' is not allowed. >>> - -- Micah J. Cowan Programmer, musician, typesetting enthusiast, gamer... http://micah.cowan.name/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHV4t67M8hyUobTrERAmZNAJ9wEv1kY3Kg9KFcsBKSs86/7Qg9hACgjPwc DqNUqvbs5k/hg9U959dfmbs= =bnK8 -----END PGP SIGNATURE-----