changeset 655:29cce9076921

Added "wincmdln" to env var CYGWIN to make CLI visible to procexp.
author Oleksandr Gavenko <gavenkoa@gmail.com>
date Sat, 14 Nov 2020 18:57:56 +0200
parents 17e4bd5926d2
children a9def9e2e189
files win/reg/cygwin.reg
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/win/reg/cygwin.reg	Sun Sep 06 12:36:54 2020 +0300
+++ b/win/reg/cygwin.reg	Sat Nov 14 18:57:56 2020 +0200
@@ -2,7 +2,12 @@
 
 ; [HKEY_CURRENT_USER\Environment]
 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment]
-; Prevent expantion of curly braces in command arguments.
-"CYGWIN"="noglob"
+; https://cygwin.com/cygwin-ug-net/using-cygwinenv.html
+; (no)glob[:ignorecase] - if set, command line arguments containing UNIX-style file wildcard characters
+;   (brackets, braces, question mark, asterisk, escaped with \) are expanded into lists of files that match those wildcards.
+;   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.
+; wincmdln - 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.
+"CYGWIN"="noglob wincmdln"
 ; Following was useful 10 years ago...
 ; "LANG"="ru_RU.cp1251"