Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Date: Fri, 22 Sep 2000 12:52:56 -0400
From: Chris Faylor <cgf@cygnus.com>
To: Emmanuel Blot <emmanuel.blot@ireland.sun.com>
Cc: cygwin@sources.redhat.com
Subject: Re: Cygwin and CR/LF
Message-ID: <20000922125256.A5938@cygnus.com>
Reply-To: cygwin@sources.redhat.com
Mail-Followup-To: Emmanuel Blot <emmanuel.blot@ireland.sun.com>,
	cygwin@sources.redhat.com
References: <012001c023e9$01614d40$e5dc9c81@ireland.sun.com> <20000921172617.A4304@cygnus.com> <01ab01c02494$50bae800$e5dc9c81@ireland.sun.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.6i
In-Reply-To: <01ab01c02494$50bae800$e5dc9c81@ireland.sun.com>; from emmanuel.blot@ireland.sun.com on Fri, Sep 22, 2000 at 01:54:59PM +0100

On Fri, Sep 22, 2000 at 01:54:59PM +0100, Emmanuel Blot wrote:
>> If filelist is on a directory mounted as -b, then this takes precedence.
>Everything is mounted by default, I've changed nothing:
>
>D: is my data drive, FAT32 ----> //D for cygwin
>E: is my main Win2k drive, NTFS  ---> //E for cygwin
>E:\cygwin is the top dir of cygwin ---> /  for cygwin
>
>What are the default mount settings for those drives ?

The mount command shows you what directories are mounted as what.

>> CYGWIN=binmode only works when you are not a child of a bash shell.
>
>Not sure to understand that.
>I have put
>set CYGWIN=binmode
>in the cygwin.bat file that launch the bash script

The CYGWIN=binmode setting has no effect on ">" redirection
under the bash or ash shell (or any shell for that matter).

It will only effect ">" redirection when used directly from the
windows command shell, e.g.

c:\>ls > foo

The reason for this is that when you use "> foo" in bash or ash,
cygwin resolves foo to the current directory and can determine if the
directory is mounted binmode (-b) or not.

When you use redirection outside of the cygwin environment, the only thing
that cygwin knows about its standard output is that it is a disk file.  It
has no idea where the file 'foo' lives.

>Where it would work, where it would not work ?

Hopefully that explains it.  If it doesn't then please send email
to the cygwin list, not to me personally.

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

