2004-12-25 05:58:38 +08:00
|
|
|
<sect1 id="using-cygwinenv"><title>The <envar>CYGWIN</envar> environment
|
2000-02-18 03:38:33 +08:00
|
|
|
variable</title>
|
|
|
|
|
2008-07-17 19:49:45 +08:00
|
|
|
<sect2 id="cygwinenv-implemented-options">
|
|
|
|
<title>Implemented options</title>
|
|
|
|
|
2004-12-25 05:58:38 +08:00
|
|
|
<para>The <envar>CYGWIN</envar> environment variable is used to configure
|
2000-02-18 03:38:33 +08:00
|
|
|
many global settings for the Cygwin runtime system. It contains the options
|
|
|
|
listed below, separated by blank characters. Many options can be turned off
|
2008-07-17 19:49:45 +08:00
|
|
|
by prefixing with <literal>no</literal>.</para>
|
2000-02-18 03:38:33 +08:00
|
|
|
|
2004-12-25 05:58:38 +08:00
|
|
|
<itemizedlist mark="bullet">
|
2003-02-03 08:30:45 +08:00
|
|
|
|
2006-08-02 02:06:49 +08:00
|
|
|
<listitem>
|
|
|
|
<para><envar>(no)dosfilewarning</envar> - If set, Cygwin will warn the
|
|
|
|
first time a user uses an "MS-DOS" style path name rather than a POSIX-style
|
|
|
|
path name. Defaults to set.</para>
|
|
|
|
</listitem>
|
|
|
|
|
2001-04-13 05:52:38 +08:00
|
|
|
<listitem>
|
2004-01-11 16:32:09 +08:00
|
|
|
<para><envar>(no)envcache</envar> - If set, environment variable
|
2008-07-17 19:49:45 +08:00
|
|
|
conversions (between Win32 and POSIX) are cached. Note that this may
|
2000-02-18 03:38:33 +08:00
|
|
|
cause problems if the mount table changes, as the cache is not invalidated
|
|
|
|
and may contain values that depend on the previous mount table
|
|
|
|
contents. Defaults to set.</para>
|
|
|
|
</listitem>
|
2008-07-17 19:49:45 +08:00
|
|
|
|
2000-02-18 03:38:33 +08:00
|
|
|
<listitem>
|
2006-08-02 02:06:49 +08:00
|
|
|
<para><envar>(no)export</envar> - If set, the final values of these
|
2004-01-11 16:32:09 +08:00
|
|
|
settings are re-exported to the environment as <envar>CYGWIN</envar> again.
|
|
|
|
Defaults to off.</para>
|
2000-02-18 03:38:33 +08:00
|
|
|
</listitem>
|
2008-07-17 19:49:45 +08:00
|
|
|
|
2000-02-18 03:38:33 +08:00
|
|
|
<listitem>
|
2004-03-27 14:48:11 +08:00
|
|
|
<para>
|
|
|
|
<envar>error_start:Win32filepath</envar> - if set, runs
|
|
|
|
<filename>Win32filepath</filename> when cygwin encounters a fatal error,
|
|
|
|
which is useful for debugging. <filename>Win32filepath</filename> is
|
|
|
|
usually set to the path to <command>gdb</command> or
|
|
|
|
<command>dumper</command>, for example
|
|
|
|
<filename>C:\cygwin\bin\gdb.exe</filename>.
|
|
|
|
There is no default set.
|
|
|
|
</para>
|
2004-01-11 16:32:09 +08:00
|
|
|
</listitem>
|
2008-07-17 19:49:45 +08:00
|
|
|
|
2004-01-11 16:32:09 +08:00
|
|
|
<listitem>
|
2009-04-03 19:51:31 +08:00
|
|
|
<para><envar>forkchunk:32768</envar> - causes <function>fork()</function>
|
2004-01-11 16:32:09 +08:00
|
|
|
to copy memory some number of bytes at a time, in the above example
|
|
|
|
32768 bytes (32Kb) at a time. The default is to copy as many bytes as
|
|
|
|
possible, which is preferable in most cases but may slow some older systems
|
|
|
|
down.
|
2004-01-24 16:09:45 +08:00
|
|
|
</para>
|
2004-01-11 16:32:09 +08:00
|
|
|
</listitem>
|
2008-07-17 19:49:45 +08:00
|
|
|
|
2004-01-11 16:32:09 +08:00
|
|
|
<listitem>
|
2009-04-03 19:51:31 +08:00
|
|
|
<para><envar>proc_retry:n</envar> - causes <function>fork()</function> and
|
|
|
|
<function>exec*()</function> to retry n times when a child process fails
|
|
|
|
due to certain windows-specific errors. These errors usually occur when
|
|
|
|
processes are being started while a user is logging off.
|
2006-03-14 05:02:37 +08:00
|
|
|
</para>
|
|
|
|
</listitem>
|
2008-07-17 19:49:45 +08:00
|
|
|
|
2006-03-14 05:02:37 +08:00
|
|
|
<listitem>
|
2004-01-11 16:32:09 +08:00
|
|
|
<para><envar>(no)glob[:ignorecase]</envar> - if set, command line arguments
|
2000-02-18 03:38:33 +08:00
|
|
|
containing UNIX-style file wildcard characters (brackets, question mark,
|
|
|
|
asterisk, escaped with \) are expanded into lists of files that match
|
|
|
|
those wildcards.
|
|
|
|
This is applicable only to programs running from a DOS command line prompt.
|
|
|
|
Default is set.</para>
|
2000-11-19 12:53:46 +08:00
|
|
|
<para>This option also accepts an optional <literal>[no]ignorecase</literal> modifer.
|
|
|
|
If supplied, wildcard matching is case insensitive. The default is <literal>noignorecase</literal></para>
|
2000-02-18 03:38:33 +08:00
|
|
|
</listitem>
|
2008-07-17 19:49:45 +08:00
|
|
|
|
2000-12-20 04:14:34 +08:00
|
|
|
<listitem>
|
2004-01-11 16:32:09 +08:00
|
|
|
<para><envar>(no)reset_com</envar> - if set, serial ports are reset
|
2000-02-18 03:38:33 +08:00
|
|
|
to 9600-8-N-1 with no flow control when used. This is done at open
|
|
|
|
time and when handles are inherited. Defaults to set.</para>
|
|
|
|
</listitem>
|
2008-07-17 19:49:45 +08:00
|
|
|
|
2004-02-20 15:26:16 +08:00
|
|
|
<listitem>
|
2004-01-11 16:32:09 +08:00
|
|
|
<para><envar>(no)strip_title</envar> - if set, strips the directory
|
2000-02-18 03:38:33 +08:00
|
|
|
part off the window title, if any. Default is not set.</para>
|
|
|
|
</listitem>
|
2008-07-17 19:49:45 +08:00
|
|
|
|
2000-02-18 03:38:33 +08:00
|
|
|
<listitem>
|
2004-01-11 16:32:09 +08:00
|
|
|
<para><envar>(no)title</envar> - if set, the title bar
|
2000-02-18 03:38:33 +08:00
|
|
|
reflects the name of the program currently running. Default is not
|
2008-07-17 19:49:45 +08:00
|
|
|
set.</para>
|
2000-02-18 03:38:33 +08:00
|
|
|
</listitem>
|
2008-07-17 19:49:45 +08:00
|
|
|
|
2000-02-18 03:38:33 +08:00
|
|
|
<listitem>
|
2004-01-11 16:32:09 +08:00
|
|
|
<para><envar>(no)tty</envar> - if set, Cygwin enables extra support
|
2005-07-11 03:39:31 +08:00
|
|
|
(i.e., termios) for UNIX-like ttys in the Windows console.
|
2000-02-18 03:38:33 +08:00
|
|
|
It is not compatible with some Windows programs.
|
2004-02-20 15:26:16 +08:00
|
|
|
Defaults to not set, in which case the tty is opened in text mode.
|
|
|
|
Note that this has been changed such that ^D works as
|
|
|
|
expected instead of ^Z, and is settable via <command>stty</command>.
|
2000-02-18 03:38:33 +08:00
|
|
|
This option must be specified before starting a Cygwin shell
|
2005-07-11 03:39:31 +08:00
|
|
|
and it cannot be changed in the shell. It should not be set when using
|
|
|
|
other terminals (i.e., rxvt or xterm).
|
|
|
|
</para>
|
2000-02-18 03:38:33 +08:00
|
|
|
</listitem>
|
2008-07-17 19:49:45 +08:00
|
|
|
|
2008-11-11 18:51:45 +08:00
|
|
|
<listitem>
|
|
|
|
<para><envar>(no)upcaseenv</envar> - if set, Cygwin converts all
|
|
|
|
environment variables to all-uppercase, when a Cygwin process is started
|
2009-04-03 19:51:31 +08:00
|
|
|
from a non-Cygwin native Windows process. This was the default behavior in
|
|
|
|
releases prior to Cygwin 1.7. If not set, Cygwin does not change the case
|
|
|
|
of environment variables, except for a restricted set to maintain minimal
|
|
|
|
backward compatibility and for correct handling of certain essential
|
|
|
|
variables. The current list of always uppercased variables is:</para>
|
2008-11-11 18:51:45 +08:00
|
|
|
<screen>
|
|
|
|
ALLUSERSPROFILE
|
|
|
|
COMMONPROGRAMFILES
|
|
|
|
COMPUTERNAME
|
|
|
|
COMSPEC
|
|
|
|
HOME
|
|
|
|
HOMEDRIVE
|
|
|
|
HOMEPATH
|
|
|
|
NUMBER_OF_PROCESSORS
|
|
|
|
OS
|
|
|
|
PATH
|
|
|
|
PATHEXT
|
|
|
|
PROCESSOR_ARCHITECTURE
|
|
|
|
PROCESSOR_IDENTIFIER
|
|
|
|
PROCESSOR_LEVEL
|
|
|
|
PROCESSOR_REVISION
|
|
|
|
PROGRAMFILES
|
|
|
|
SYSTEMDRIVE
|
|
|
|
SYSTEMROOT
|
|
|
|
TEMP
|
|
|
|
TERM
|
|
|
|
TMP
|
|
|
|
TMPDIR
|
|
|
|
WINDIR
|
|
|
|
</screen>
|
|
|
|
<para>Defaults to not set.</para>
|
|
|
|
</listitem>
|
|
|
|
|
2001-03-02 20:05:31 +08:00
|
|
|
<listitem>
|
2004-01-11 16:32:09 +08:00
|
|
|
<para><envar>(no)winsymlinks</envar> - if set, Cygwin creates
|
2001-03-02 20:05:31 +08:00
|
|
|
symlinks as Windows shortcuts with a special header and the R/O attribute
|
|
|
|
set. If not set, Cygwin creates symlinks as plain files with a magic number,
|
2008-07-17 19:49:45 +08:00
|
|
|
a path and the system attribute set. Defaults to not set since plain
|
2010-01-13 00:40:53 +08:00
|
|
|
file symlinks are faster to write and faster to read.</para>
|
|
|
|
|
|
|
|
<para>Please note that symlinks created under Cygwin 1.7 or later are
|
|
|
|
not readable by older Cygwin releases because the new symlinks use UTF-16
|
|
|
|
to encode the target filename, while the old symlinks used the current
|
|
|
|
ANSI or OEM charset.</para>
|
2001-03-02 20:05:31 +08:00
|
|
|
</listitem>
|
2008-07-18 16:17:28 +08:00
|
|
|
|
2000-02-18 03:38:33 +08:00
|
|
|
</itemizedlist>
|
2008-07-17 19:49:45 +08:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 id="cygwinenv-removed-options">
|
2009-04-03 19:51:31 +08:00
|
|
|
<title>Obsolete options</title>
|
2008-07-17 19:49:45 +08:00
|
|
|
|
|
|
|
<para>
|
2009-04-03 19:51:31 +08:00
|
|
|
Certain CYGWIN options available in past releases have been removed in
|
|
|
|
Cygwin 1.7 for one reason or another. These obsolete options are listed
|
|
|
|
below.</para>
|
2008-07-17 19:49:45 +08:00
|
|
|
|
|
|
|
<itemizedlist mark="bullet">
|
2008-07-18 16:17:28 +08:00
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para><envar>(no)binmode</envar> - This option has been removed because
|
|
|
|
all file opens default to binary mode, unless the open mode has been specified
|
2009-05-27 10:30:42 +08:00
|
|
|
explicitly in the open(2) call.
|
2008-07-18 16:17:28 +08:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
|
2008-07-17 19:49:45 +08:00
|
|
|
<listitem>
|
|
|
|
<para><envar>check_case</envar> - This option has been removed in favor of
|
|
|
|
real case sensitivity and the per-mount option "posix=[0|1]". For more
|
|
|
|
information, read the documentation in <xref linkend="mount-table"></xref> and
|
|
|
|
<xref linkend="pathnames-casesensitive"></xref>.</para>
|
|
|
|
</listitem>
|
|
|
|
|
2009-03-24 20:37:02 +08:00
|
|
|
<listitem>
|
|
|
|
<para><envar>codepage:[ansi|oem]</envar> - This option controled
|
|
|
|
which character set is used for file and console operations. Since Cygwin
|
|
|
|
is now doing all character conversion by itself, depending on the
|
|
|
|
application call to the <function>setlocale()</function> function, and in
|
|
|
|
turn by the setting of the environment variables <envar>$LANG</envar>,
|
|
|
|
<envar>$LC_ALL</envar>, or <envar>$LC_CTYPE</envar>, this setting
|
2009-04-03 19:51:31 +08:00
|
|
|
became superfluous.</para>
|
2009-03-24 20:37:02 +08:00
|
|
|
</listitem>
|
|
|
|
|
2008-07-17 19:49:45 +08:00
|
|
|
<listitem>
|
|
|
|
<para><envar>(no)ntea</envar> - This option has been removed since it
|
|
|
|
only fakes security which is considered dangerous and useless. It also
|
|
|
|
created an uncontrollably large file on FAT and was entirely useless
|
|
|
|
on FAT32.</para>
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para><envar>(no)ntsec</envar> - This option has been removed in favor of
|
|
|
|
the per-mount option "acl"/"noacl". For more information, read the
|
|
|
|
documentation in <xref linkend="mount-table"></xref>.</para>
|
|
|
|
</listitem>
|
|
|
|
|
2009-01-22 01:14:39 +08:00
|
|
|
<listitem>
|
|
|
|
<para><envar>(no)server</envar> - Originally this option had to be
|
|
|
|
enabled on the client side to use features only available when running
|
|
|
|
<command>cygserver</command>. This option has been removed because Cygwin now
|
|
|
|
always tries to contact cygserver if a function is called which requires
|
|
|
|
cygserver being available. For more information, read the documentation
|
|
|
|
in <xref linkend="using-cygserver"></xref>.</para>
|
|
|
|
</listitem>
|
|
|
|
|
2008-07-17 19:49:45 +08:00
|
|
|
<listitem>
|
|
|
|
<para><envar>(no)smbntsec</envar> - This option has been removed in favor of
|
|
|
|
the per-mount option "acl"/"noacl". For more information, read the
|
|
|
|
documentation in <xref linkend="mount-table"></xref>.</para>
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para><envar>(no)transparent_exe</envar> - This option has been removed
|
|
|
|
because the behaviour it switched on is now the standard behaviour in
|
|
|
|
Cygwin.</para>
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para><envar>(no)traverse</envar> - This option has been removed because
|
|
|
|
traverse checking is not quite correctly implemented by Microsoft and
|
2009-04-03 19:51:31 +08:00
|
|
|
it's behaviour has been getting worse with each new OS version. This
|
|
|
|
complicates its usage so the option has been removed for now.</para>
|
2008-07-17 19:49:45 +08:00
|
|
|
</listitem>
|
2008-07-18 16:17:28 +08:00
|
|
|
|
2008-07-17 19:49:45 +08:00
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
2000-02-18 03:38:33 +08:00
|
|
|
</sect1>
|