delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/05/19/22:06:31

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
From: Chris Faylor <cgf AT cygnus DOT com>
Date: Fri, 19 May 2000 22:05:42 -0400
To: cygwin <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: bash fails to redirect inside script
Message-ID: <20000519220542.A23365@cygnus.com>
Reply-To: cygwin AT sourceware DOT cygnus DOT com
Mail-Followup-To: cgf AT cygnus DOT com, cygwin <cygwin AT sourceware DOT cygnus DOT com>
References: <3925027F DOT E5781D65 AT vinschen DOT de> <NCBBLFFOCBDEIBAHAEPMEEIDCGAA DOT tas DOT van DOT ommen AT utas DOT edu DOT au>
Mime-Version: 1.0
User-Agent: Mutt/1.1.12i
In-Reply-To: <NCBBLFFOCBDEIBAHAEPMEEIDCGAA.tas.van.ommen@utas.edu.au>; from tas.van.ommen@utas.edu.au on Sat, May 20, 2000 at 09:52:27AM +1000

Mount the directories in question using the '-t' option to mount:

mount -t c:\foo /foo

This should normally work.  It's broken in version 1.1.1 of the DLL but
DJ Delorie is valiantly striving to fix this.

cgf

On Sat, May 20, 2000 at 09:52:27AM +1000, Tas van Ommen wrote:
>Thanks Corinna, but this gives me problems.
>
>This was not a problem in b20.1  I am setting up machines for novice users
>to use the gmt package.  They need to be able to make simple modifications
>to bash scripts and will most likely use dos/windows editing tools that they
>are familiar with.  I do not want to impose upon them the requirement to do
>a dos2unix translation (after all cygwin is all about mixed environments).
>
>Is there any chance bash can be altered to accept \r\n lineendings like sh
>does.  If so, I would greatly appreciate someone building a bash.exe for me.
>
>If you have any other advice I would welcome it.  Also, do you have a
>compiled dos2unix or equivalent?
>
>Thanks,
>
>Tas
>
>
>
>-----Original Message-----
>From: corinna AT snoopy DOT vinschen DOT de [mailto:corinna AT snoopy DOT vinschen DOT de]On
>Behalf Of Corinna Vinschen
>Sent: Friday, 19 May 2000 19:00
>To: Tas van Ommen
>Cc: cygwin AT sourceware DOT cygnus DOT com
>Subject: Re: bash fails to redirect inside script
>
>
>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.
>

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