2013-05-02 01:30:25 +02:00
|
|
|
<?xml version="1.0" encoding='UTF-8'?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
|
|
|
|
|
2004-12-24 22:58:38 +01:00
|
|
|
<sect1 id="using-cygwinenv"><title>The <envar>CYGWIN</envar> environment
|
2000-02-17 20:38:33 +01:00
|
|
|
variable</title>
|
|
|
|
|
2008-07-17 13:49:45 +02:00
|
|
|
<sect2 id="cygwinenv-implemented-options">
|
|
|
|
<title>Implemented options</title>
|
|
|
|
|
2004-12-24 22:58:38 +01:00
|
|
|
<para>The <envar>CYGWIN</envar> environment variable is used to configure
|
2000-02-17 20:38:33 +01: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 13:49:45 +02:00
|
|
|
by prefixing with <literal>no</literal>.</para>
|
2000-02-17 20:38:33 +01:00
|
|
|
|
2004-12-24 22:58:38 +01:00
|
|
|
<itemizedlist mark="bullet">
|
2003-02-03 01:30:45 +01:00
|
|
|
|
2000-02-17 20:38:33 +01:00
|
|
|
<listitem>
|
2006-08-01 20:06:49 +02:00
|
|
|
<para><envar>(no)export</envar> - If set, the final values of these
|
2004-01-11 09:32:09 +01:00
|
|
|
settings are re-exported to the environment as <envar>CYGWIN</envar> again.
|
|
|
|
Defaults to off.</para>
|
2000-02-17 20:38:33 +01:00
|
|
|
</listitem>
|
2008-07-17 13:49:45 +02:00
|
|
|
|
2000-02-17 20:38:33 +01:00
|
|
|
<listitem>
|
2004-03-27 07:48:11 +01: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
|
2020-06-10 15:52:41 +02:00
|
|
|
<filename>C:\cygwin\bin\gdb.exe</filename>.
|
2004-03-27 07:48:11 +01:00
|
|
|
There is no default set.
|
|
|
|
</para>
|
2020-06-10 15:52:41 +02:00
|
|
|
<para>
|
|
|
|
The filename of the executing program and it's Windows process id are appended
|
|
|
|
to the command as arguments.
|
|
|
|
</para>
|
2004-01-11 09:32:09 +01:00
|
|
|
</listitem>
|
2008-07-17 13:49:45 +02:00
|
|
|
|
2006-03-13 22:02:37 +01:00
|
|
|
<listitem>
|
2004-01-11 09:32:09 +01:00
|
|
|
<para><envar>(no)glob[:ignorecase]</envar> - if set, command line arguments
|
2011-07-15 22:59:07 +02:00
|
|
|
containing UNIX-style file wildcard characters (brackets, braces, question mark,
|
2000-02-17 20:38:33 +01:00
|
|
|
asterisk, escaped with \) are expanded into lists of files that match
|
|
|
|
those wildcards.
|
2011-07-15 22:59:07 +02:00
|
|
|
This is applicable only to programs run from non-Cygwin programs such as a CMD prompt.
|
|
|
|
That means that this setting does not affect globbing operations for shells such as
|
|
|
|
bash, sh, tcsh, zsh, etc.
|
2000-02-17 20:38:33 +01:00
|
|
|
Default is set.</para>
|
2000-11-19 05:53:46 +01: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-17 20:38:33 +01:00
|
|
|
</listitem>
|
2008-07-17 13:49:45 +02:00
|
|
|
|
2012-05-06 20:59:46 +02:00
|
|
|
<listitem>
|
|
|
|
<para><envar>(no)pipe_byte</envar> - causes Cygwin to open pipes in byte mode rather than
|
|
|
|
message mode.</para>
|
|
|
|
</listitem>
|
|
|
|
|
2000-12-19 21:14:34 +01:00
|
|
|
<listitem>
|
2011-06-15 13:41:26 +02: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.
|
2005-07-10 21:39:31 +02:00
|
|
|
</para>
|
2000-02-17 20:38:33 +01:00
|
|
|
</listitem>
|
2008-07-17 13:49:45 +02:00
|
|
|
|
2008-11-11 11:51:45 +01:00
|
|
|
<listitem>
|
2011-06-15 13:41:26 +02:00
|
|
|
<para><envar>(no)reset_com</envar> - if set, serial ports are reset
|
|
|
|
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>
|
2008-11-11 11:51:45 +01:00
|
|
|
</listitem>
|
|
|
|
|
2013-07-26 19:28:00 +02:00
|
|
|
<listitem>
|
|
|
|
<para><envar>(no)wincmdln</envar> - if set, the windows complete command
|
|
|
|
line (truncated to ~32K) will be passed on any processes that it creates
|
|
|
|
in addition to the normal UNIX argv list. Defaults to not set.</para>
|
|
|
|
</listitem>
|
|
|
|
|
2001-03-02 13:05:31 +01:00
|
|
|
<listitem>
|
2013-05-23 16:26:53 +02:00
|
|
|
<para><envar>winsymlinks:{lnk,native,nativestrict}</envar> - if set to just
|
2013-04-24 12:18:08 +02:00
|
|
|
<literal>winsymlinks</literal> or <literal>winsymlinks:lnk</literal>,
|
|
|
|
Cygwin creates symlinks as Windows shortcuts with a special header and
|
2013-05-23 16:26:53 +02:00
|
|
|
the R/O attribute set.</para>
|
|
|
|
|
|
|
|
<para>If set to <literal>winsymlinks:native</literal> or
|
|
|
|
<literal>winsymlinks:nativestrict</literal>, Cygwin creates symlinks as
|
2016-06-24 23:21:10 +02:00
|
|
|
native Windows symlinks on filesystems and OS versions supporting them.</para>
|
2013-05-23 16:26:53 +02:00
|
|
|
|
|
|
|
<para>The difference between <literal>winsymlinks:native</literal> and
|
|
|
|
<literal>winsymlinks:nativestrict</literal> is this: If the filesystem
|
|
|
|
supports native symlinks and Cygwin fails to create a native symlink for
|
|
|
|
some reason, it will fall back to creating Cygwin default symlinks
|
|
|
|
with <literal>winsymlinks:native</literal>, while with
|
|
|
|
<literal>winsymlinks:nativestrict</literal> the <literal>symlink(2)</literal>
|
|
|
|
system call will immediately fail.</para>
|
|
|
|
|
|
|
|
<para>For more information on symbolic links, see
|
|
|
|
<xref linkend="pathnames-symlinks"></xref>.</para>
|
2001-03-02 13:05:31 +01:00
|
|
|
</listitem>
|
2008-07-18 10:17:28 +02:00
|
|
|
|
2020-01-21 14:25:13 +01:00
|
|
|
<listitem>
|
|
|
|
<para><envar>disable_pcon</envar> - if set, pseudo console support in
|
|
|
|
pty will be disabled. This is for programs which do not work properly
|
|
|
|
under pty with pseudo console enabled. Defaults to not set.</para>
|
|
|
|
</listitem>
|
|
|
|
|
2000-02-17 20:38:33 +01:00
|
|
|
</itemizedlist>
|
2008-07-17 13:49:45 +02:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 id="cygwinenv-removed-options">
|
2009-04-03 13:51:31 +02:00
|
|
|
<title>Obsolete options</title>
|
2008-07-17 13:49:45 +02:00
|
|
|
|
|
|
|
<para>
|
2016-03-18 22:52:04 +01:00
|
|
|
Certain CYGWIN options available in past releases have been removed over
|
|
|
|
time for one reason or another. These obsolete options are listed
|
2009-04-03 13:51:31 +02:00
|
|
|
below.</para>
|
2008-07-17 13:49:45 +02:00
|
|
|
|
|
|
|
<itemizedlist mark="bullet">
|
2008-07-18 10:17:28 +02: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 04:30:42 +02:00
|
|
|
explicitly in the open(2) call.
|
2008-07-18 10:17:28 +02:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
|
2015-12-15 18:28:03 +01:00
|
|
|
<listitem>
|
|
|
|
<para><envar>(no)detect_bloda</envar> - No case of a BLODA found by this
|
|
|
|
option has been reported in years.</para>
|
|
|
|
</listitem>
|
|
|
|
|
2020-01-28 21:59:22 +01:00
|
|
|
<listitem>
|
|
|
|
<para><envar>(no)dosfilewarning</envar> - This option had been disabled for
|
|
|
|
quite some time and nobody missed it.</para>
|
|
|
|
</listitem>
|
|
|
|
|
2008-07-17 13:49:45 +02: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 13:37:02 +01:00
|
|
|
<listitem>
|
2011-05-10 12:23:57 +02:00
|
|
|
<para><envar>codepage:[ansi|oem]</envar> - This option controlled
|
2009-03-24 13:37:02 +01:00
|
|
|
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 13:51:31 +02:00
|
|
|
became superfluous.</para>
|
2009-03-24 13:37:02 +01:00
|
|
|
</listitem>
|
|
|
|
|
2011-06-15 13:41:26 +02:00
|
|
|
<listitem>
|
|
|
|
<para><envar>(no)envcache</envar> - Originally, <envar>envcache</envar>
|
|
|
|
controlled caching of environment variable conversion between Win32 and
|
|
|
|
POSIX. The default setting works fine, the option was just useless.</para>
|
|
|
|
</listitem>
|
|
|
|
|
2011-05-10 12:23:57 +02:00
|
|
|
<listitem>
|
|
|
|
<para><envar>forkchunk:[intval]</envar> - This option allowed to influence
|
|
|
|
the <function>fork()</function> function in the way the memory of the
|
|
|
|
parent process gets copied to the child process. This functionality was
|
|
|
|
only useful for Windows 95/98/Me.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
|
2008-07-17 13:49:45 +02: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-21 18:14:39 +01: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 13:49:45 +02: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>
|
|
|
|
|
2011-06-15 13:41:26 +02:00
|
|
|
<listitem>
|
|
|
|
<para><envar>(no)strip_title</envar> - Removed because setting the Window title
|
|
|
|
can be controlled by the application via Escape sequences.</para>
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para><envar>(no)title</envar> - Removed because setting the Window title
|
|
|
|
can be controlled by the application via Escape sequences.</para>
|
|
|
|
</listitem>
|
|
|
|
|
2008-07-17 13:49:45 +02:00
|
|
|
<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 13:51:31 +02: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 13:49:45 +02:00
|
|
|
</listitem>
|
2008-07-18 10:17:28 +02:00
|
|
|
|
2011-06-15 13:41:26 +02:00
|
|
|
<listitem>
|
|
|
|
<para><envar>(no)tty</envar> - If set, Cygwin enabled extra support
|
|
|
|
(i.e., termios) for UNIX-like ttys in the Windows console. This option
|
|
|
|
has been removed because it can be easily replaced by using a terminal
|
|
|
|
like <command>mintty</command>, and it does not work well with some
|
|
|
|
Windows programs.</para>
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para><envar>(no)upcaseenv</envar> - This option could be used to convert
|
|
|
|
all environment variables to uppercase. This was the default behavior in
|
2016-03-18 22:52:04 +01:00
|
|
|
older releases of Cygwin. Since keeping the case of environment variables
|
|
|
|
intact is POSIXly correct, Cygwin now does not change the case
|
2011-06-15 13:41:26 +02:00
|
|
|
of environment variables, except for a restricted set to maintain minimal
|
|
|
|
backward compatibility. The current list of always uppercased variables is:
|
|
|
|
</para>
|
|
|
|
<screen>
|
|
|
|
COMMONPROGRAMFILES
|
|
|
|
COMSPEC
|
|
|
|
PATH
|
|
|
|
SYSTEMDRIVE
|
|
|
|
SYSTEMROOT
|
|
|
|
TEMP
|
|
|
|
TMP
|
|
|
|
WINDIR
|
|
|
|
</screen>
|
|
|
|
</listitem>
|
|
|
|
|
2008-07-17 13:49:45 +02:00
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
2000-02-17 20:38:33 +01:00
|
|
|
</sect1>
|