delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/05/19/05:13:16

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <3925027F.E5781D65@vinschen.de>
Date: Fri, 19 May 2000 10:59:43 +0200
From: Corinna Vinschen <corinna AT vinschen DOT de>
Reply-To: cygwin <cygwin AT sourceware DOT cygnus DOT com>
Organization: Cygnus Solutions, a Red Hat Company
X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.14 i686)
X-Accept-Language: de, en
MIME-Version: 1.0
To: Tas van Ommen <tas DOT van DOT ommen AT utas DOT edu DOT au>
CC: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: bash fails to redirect inside script
References: <NCBBLFFOCBDEIBAHAEPMOEHMCGAA DOT tas DOT van DOT ommen AT utas DOT edu DOT au>

Tas van Ommen wrote:
> 
> I have just installed net version of cygwin.
> 
> I have the following script
> #!/bin/bash
> echo "Hello" > x.x
> 
> So I execute it:
> BASH.EXE-2.03$ . temp.bash
> : No such file or directory
> 
> What is happening?  I have a /tmp directory.  I can do either of
> sh temp.bash
> 
> or type echo "Hello" > x.x manually without the error.
> 
> Any advice?

Your script has DOS line endings but the script is
on a binary mounted file system. You should change
the \r\n line endings to the U*X style \n and your
script should work.

-- 
Corinna Vinschen
Cygwin Developer
Cygnus Solutions, a Red Hat company

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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