[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-wget] Any explanation for the '-nc' returned value?
From: |
Yuxi Hao |
Subject: |
[Bug-wget] Any explanation for the '-nc' returned value? |
Date: |
Sat, 28 Jul 2018 21:52:50 +0800 |
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
- [Bug-wget] Any explanation for the '-nc' returned value?,
Yuxi Hao <=