Mail Archives: cygwin-developers/1999/01/24/09:21:31

From: jeffdbREMOVETHIS AT goodnet DOT com (Mikey)
Subject: Re: Answer to your text == binary question
24 Jan 1999 09:21:31 -0800 :
Message-ID: <>
References: <3 DOT 0 DOT 5 DOT 32 DOT 19990121172155 DOT 0080c6a0 AT pop DOT ne DOT mediaone DOT net>
Reply-To: jeffdbREMOVETHIS AT goodnet DOT com
Mime-Version: 1.0
To: cygwin32-developers AT cygnus DOT com

Chris /dev/hd[a-z][1-8] IS a device ;-)

new automounts should default to whatever text/binary mode is set with
[no]binmode, if '/' isn't already mounted.

Obviously if someone sets nobinmode in their global configuration they
wouldn't want binary mounts.

otherwise default to the '/' mode

That way a simple edit of cygwin.bat would allow you to set the mount
mode of '/' on a fresh install.  something like the following could be
added to cygwin.bat.

:: Uncomment the lines setting the following options
:: of the %CYGWIN% environment variable 
:: to change the indicated defaults

:: [no]title - disable/enable(default) displaying of a current running proces's command line
::                  on a console title.
rem CYGWIN=%CYGWIN% notitle

:: [no]strip_title - works in conjunction with 'title'.  Strips the path spec
::                    from what is displayed in the console title bar when the
::                    program is run.
rem CYGWIN=%CYGWIN% strip_title

::  [no]binmode     - Use 'binmode' as the default open mode for device/files
::                    when the mode is  not otherwise specified in the open or by mount.
rem CYGWIN=%CYGWIN% nobinmode

::  [no]glob        - Do not perform globbing operations on the command line when
::                   a cygwin process is being invoked from a non-cygwin shell.
rem CYGWIN=%CYGWIN% noglob

:: strace,[mask],[file]          - A cygwinXX.dll debugging aid.  Setting mask to '1' will
::                    cause reams of information about the operation of cygwin
::                    to be written to 'file' as cygwin operates.  The rest
::                    of the bits control the display various cygwin subsystems.
::                    For a complete list check out .../include/sys/strace.h.
::                   The cache setting controls how much strace output will be
::                    held in memory before being output to disk.
rem  CYGWIN=%CYGWIN% strace,1,strace.log

:: [no]tty 		- disable(default)/enable tty support for consoles.

:: the following are only available when using coolview
:: from
:: [no]ntea - disable(default)/enable usage of extended file attributes on Windows NT.
:: [no]mixed - disable(default)/enable case-sensitive filenames on ntfs partitions.

just my $0.02

On Fri, 22 Jan 1999 08:26:03 -0500, you wrote:

>On Thu, Jan 21, 1999 at 11:54:33PM -0800, Geoffrey Noer wrote:
>>> I thought that since the automounts exist in the mount table, that
>>> the binmode status of the automount would be the logical way to
>>> control this.
>>I meant using binmode status of the CYGWIN env variable to determine
>>what binmode to associate with the automounts.  The status would be
>>stored in the same flags area as text or binmode for normal mounts.
>>The problem is that since the user isn't choosing whether or not to
>>add an automount, it's not possible for them to specify binmode in the
>>standard way (an argument to the mount command).
>>(Maybe I'm not understanding you?)
>I thought that we agreed that the default would be text mode mounts.  If
>the user wants to change that then they override it by specifying -b to
>the mount command along with whatever option is required to specify the
>automount directory.  Then files opened using /mycygdrive will have
>whatever mode the user wants.
>That leaves CYGWIN=[no]binmode as the method for specifying the CRLF
>translation for devices and, possibly, std file handles inherited from
>the command shell.  That was my intent when I implemented this feature.
>Although, now that I think of it, you can override devices with the
>mount command, too.

- Raw text -

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