This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Bash/wget gets confused by trailing carriage return
On 2011-03-16 06:42Z, siegfried@DELETED.com wrote:
>
> #!/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
[...]
> ==> 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'.
Have you ruled out the possibility that your script contains '\r'?
This
od -t a my_script.sh |grep cr
would detect its presence, and 'd2u' would remove it.
--
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