X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: Yes, hits=6.3 required=5.0	tests=AWL,BAYES_50
X-Spam-Check-By: sourceware.org
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"
User-Agent: Web-Based Email 5.4.05
Message-Id: <20110315234257.d50bba72719f91cdb61cd892ddf83b25.80a6e42e42.wbe@email11.secureserver.net>
From: <siegfried@heintze.com>
To: cygwin@cygwin.com
Subject: Bash/wget gets confused by trailing carriage return
Date: Tue, 15 Mar 2011 23:42:57 -0700
Mime-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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
=20


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
 =3D> `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!
=3D=3D> SYST ... done. =3D=3D> PWD ... done.
=3D=3D> TYPE I ... done. =3D=3D> CWD (1) /debian-cd/6.0.0/i386/iso-dvd ... =
done.
=3D=3D> SIZE debian-6.0.0-i386-DVD-2.iso\r ... done.
=3D=3D> PASV ... done. =3D=3D> RETR debian-6.0.0-i386-DVD-2.iso\r ...=20
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

