Skip to content

Commit 5f5bb4b

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 60d92c8 commit 5f5bb4b

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
@@ -69,7 +69,7 @@ bool allow_glob = true;
6969
bool ignore_case_with_glob;
7070
bool pipe_byte;
7171
bool reset_com;
72-
bool wincmdln;
72+
bool wincmdln = true;
7373
winsym_t allow_winsymlinks = WSYM_deepcopy;
7474
bool disable_pcon = true;
7575

winsup/doc/cygwinenv.xml

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

7878
<listitem>

0 commit comments

Comments
 (0)