Hi Guys,
The source code is:
////////////////////////
if (opt.noclobber && file_exists_p(opt.output_document, NULL))
{
/* Check if output file exists; if it does, exit. */
logprintf (LOG_VERBOSE,
_("File %s already there; not retrieving.\n"),
quote (opt.output_document));
exit (WGET_EXIT_GENERIC_ERROR);
}
////////////////////////
No explanation on it:
https://www.gnu.org/software/wget/manual/html_node/Exit-Status.html
I am confused on this. If it works as specified, why don’t we return succeed?
Best Regards,
YX Hao