This corresponds to https://github.com/msys2/msys2-runtime/pull/313 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
54 lines
2.1 KiB
Diff
54 lines
2.1 KiB
Diff
From a3e87c109ba7fa90bb94b6b6e5a2abfc272b799c Mon Sep 17 00:00:00 2001
|
|
From: Johannes Schindelin <johannes.schindelin@gmx.de>
|
|
Date: Wed, 12 Aug 2020 12:22:38 +0200
|
|
Subject: [PATCH 22/N] 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 <johannes.schindelin@gmx.de>
|
|
---
|
|
winsup/cygwin/globals.cc | 2 +-
|
|
winsup/doc/cygwinenv.xml | 2 +-
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/winsup/cygwin/globals.cc b/winsup/cygwin/globals.cc
|
|
index b7e0e21..79f9476 100644
|
|
--- a/winsup/cygwin/globals.cc
|
|
+++ b/winsup/cygwin/globals.cc
|
|
@@ -70,7 +70,7 @@ bool allow_glob = true;
|
|
bool ignore_case_with_glob;
|
|
bool pipe_byte = true; /* Default to byte mode so that C# programs work. */
|
|
bool reset_com;
|
|
-bool wincmdln;
|
|
+bool wincmdln = true;
|
|
winsym_t allow_winsymlinks = WSYM_deepcopy;
|
|
bool disable_pcon;
|
|
bool winjitdebug = false;
|
|
diff --git a/winsup/doc/cygwinenv.xml b/winsup/doc/cygwinenv.xml
|
|
index fcb6e22..4ea63b4 100644
|
|
--- a/winsup/doc/cygwinenv.xml
|
|
+++ b/winsup/doc/cygwinenv.xml
|
|
@@ -90,7 +90,7 @@ time and when handles are inherited. Defaults to set.</para>
|
|
<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>
|
|
+in addition to the normal UNIX argv list. Defaults to set.</para>
|
|
</listitem>
|
|
|
|
<listitem>
|