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]

Bash/wget gets confused by trailing carriage return


I'm sorry if this appears twice. I'm posting it again because I did not
see it appear.

I have the following script that does not work!



#!/usr/bin/bash
/usr/bin/wget
ftp://mirrors.kernel.org/debian-cd/6.0.0/i386/iso-dvd/debian-6.0.0-i386-DVD-2.iso
 


when I type bash.exe -v it says version 3.9-3


Here are the results:


--2011-03-14 16:52:30--
ftp://mirrors.kernel.org/debian-cd/6.0.0/i386/iso-dvd/debian-6.0.0-i386-DVD-2.iso%0D
 => `debian-6.0.0-i386-DVD-2.iso%0D'
Resolving mirrors.kernel.org (mirrors.kernel.org)... 149.20.4.71,
149.20.20.135
Connecting to mirrors.kernel.org (mirrors.kernel.org)|149.20.4.71|:21...
connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD (1) /debian-cd/6.0.0/i386/iso-dvd ... done.
==> SIZE debian-6.0.0-i386-DVD-2.iso\r ... done.
==> PASV ... done. ==> RETR debian-6.0.0-i386-DVD-2.iso\r ... 
No such file `debian-6.0.0-i386-DVD-2.iso\r'.


Process compilation exited abnormally with code 8

It appears to be appending the carriage return on the end of the file
name. Perhaps the C runtime is getting confused.
How do I fix this?


Thanks,
Siegfried


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


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