When Wget fetches a URL to store into a file with a URL-derived name,
it can easily open the output file after it knows that the download has
begun.

   With "-O", multiple URLs are possible, and so Wget opens the file
before any download is attempted.  Consider:

      wget -O fred http://www.gnu.org/ http://www.gnu.org/nonexistent

   Here, one fetch works, and the other does not.  Is that successful or
not?

   Wget could probably be changed to delay opening the "-O" file until a
download succeeds, or it could detect any output to a "-O" file, and do
a delete-on-close if nothing is ever written to it, but it'd probably be
simpler for the fellow who specifies "-O" to do the check himself.

      man wc

------------------------------------------------------------------------

   Steven M. Schweda               (+1) 651-699-9818
   382 South Warwick Street        [EMAIL PROTECTED]
   Saint Paul  MN  55105-2547

Reply via email to