Skip to content

Commit 7e67f56

Browse files
committed
Expose full command-lines to other Win32 processes by default
In the Cygwin project, it was decided that the command-line of Cygwin processes, as shown in the output of `wmic process list`, would suffer from being truncated to 32k (and is transmitted to the child process via a different mechanism, anyway), and therefore only the absolute path of the executable is shown by default. Users who would like to see the full command-line (even if it is truncated) are expected to set `CYGWIN=wincmdln` (or, in MSYS2's case, `MSYS=wincmdln`). Seeing as MSYS2 tries to integrate much better with the surrounding Win32 ecosystem than Cygwin, it makes sense to turn this on by default. Users who wish to suppress it can still set `MSYS=nowincmdln`. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent de1fcbc commit 7e67f56

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

winsup/cygwin/globals.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ bool allow_glob = true;
7070
bool ignore_case_with_glob;
7171
bool pipe_byte = true; /* Default to byte mode so that C# programs work. */
7272
bool reset_com;
73-
bool wincmdln;
73+
bool wincmdln = true;
7474
winsym_t allow_winsymlinks = WSYM_deepcopy;
7575
bool disable_pcon;
7676
bool winjitdebug = false;

winsup/doc/cygwinenv.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ time and when handles are inherited. Defaults to set.</para>
9090
<listitem>
9191
<para><envar>(no)wincmdln</envar> - if set, the windows complete command
9292
line (truncated to ~32K) will be passed on any processes that it creates
93-
in addition to the normal UNIX argv list. Defaults to not set.</para>
93+
in addition to the normal UNIX argv list. Defaults to set.</para>
9494
</listitem>
9595

9696
<listitem>

0 commit comments

Comments
 (0)