delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/03/16/02:43:13

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: Yes, hits=6.3 required=5.0 tests=AWL,BAYES_50
X-Spam-Check-By: sourceware.org
User-Agent: Web-Based Email 5.4.05
Message-Id: <20110315234257.d50bba72719f91cdb61cd892ddf83b25.80a6e42e42.wbe@email11.secureserver.net>
From: <siegfried AT heintze DOT com>
To: cygwin AT cygwin DOT 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 AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019