This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

wget 1.10.1: Unexpected return value with option: -r


Examples are constructed so they don't create files when run 
from either cmd or Cygwin bash. (No non-temporary at least.)

If I run wget without option -r return value is as expected: 

Example. Known host, no -r:
 	wget -qO nul cygwin.com&&echo Mission completed, Sir.||echo I am sorry
Sir, but I failed miserably.
results in:
 	Mission completed, Sir.

Example. Unknown host, no -r:
 	wget -q Unknownhost.&&echo Mission completed, Sir.||echo I am sorry Sir,
but I failed miserably.
results in:
 	I am sorry Sir, but I failed miserably.

However when I use option -r return value is unexpected:
Example. Unknown host, with -r:
 	wget -dr Unknownhost.&&echo Mission completed, Sir.||echo I am sorry Sir,
but I failed miserably.
results in:
 	Setting --recursive (recursive) to 1
 	DEBUG output created by Wget 1.10.1 on cygwin.

 	Enqueuing http://unknownhost./ at depth 0
 	Queue count 1, maxcount 1.
 	Dequeuing http://unknownhost./ at depth 0
 	Queue count 0, maxcount 1.
 	--01:02:38--  http://unknownhost./
 	           => `unknownhost./index.html'
 	Resolving unknownhost.... failed: Unknown host.

 	FINISHED --01:02:41--
 	Downloaded: 0 bytes in 0 files
 	Mission completed, Sir.

Is this a bug or am I overlooking something?

Btw did the version number change with:
<http://cygwin.com/ml/cygwin/2005-10/msg00060.html>
?

 		Arend-Jan Westhoff.

Attachment: cygcheck8.out
Description: Text document

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]