This is the mail archive of the
mailing list for the Cygwin project.
RE: Probably stupid question about line termination
On Mon, 26 Jan 2004, Igor Pechtchanski wrote:
> On Mon, 26 Jan 2004, Dave Korn wrote:
> > > -----Original Message-----
> > > From: cygwin-owner On Behalf Of Benson Margulies
> > > Sent: 26 January 2004 18:00
> > > To: cygwin<at>cygwin<dot>com
> > > Subject: Probably stupid question about line termination
> > >
> > > However we set up the text mode with mount, files referenced
> > > with drive letters are being read with DOS line termination.
> > > Is there a way to control this?
> > Nope. DOS device letters don't correspond to mountpoints. The overall
> > default text/binary mode is set at install time, and can be varied on
> > different mountpoints, but since you aren't using a mountpoint to access the
> > drives, they get the default mode that you chose at install.
> Actually, IIRC, /cygdrive/* paths are always accessed in text mode,
> independent of what you set for the initial install. The initial install
> setting simply sets the mode for the default mounts created by setup
> (i.e., "/", "/usr/bin", and "/usr/lib").
Hmm, I take that back. /cygdrive is a pseudo-mount, and thus can have
text or binary mode setting... The initial install controls the mode of
/cygdrive as well. Files accessed via Win32 paths (e.g., "C:\CONFIG.SYS")
*will be* accessed in textmode. Apologies for any confusion this may have
> > Is there any reason you're forced to use drive letters, or can you just
> > make binary mode mountpoints to correspond with your drive letters?
> > cheers,
> > DaveK
|\ _,,,---,,_ email@example.com
ZZZzz /,`.-'`' -. ;-;;,_ firstname.lastname@example.org
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster." -- Patrick Naughton
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html