This is an automated email from the ASF dual-hosted git repository.

skygo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/master by this push:
     new c51b172  [NETBEANS-4143] Dont quote args in common case; fixes 
terminal startup in cygwin.
     new 760297d  Merge pull request #2071 from errael/FixTermStartup
c51b172 is described below

commit c51b1729db42fc4af8c3716dfeb27d9410572d90
Author: Ernie Rael <[email protected]>
AuthorDate: Fri Apr 10 04:46:35 2020 +0100

    [NETBEANS-4143] Dont quote args in common case; fixes terminal startup in 
cygwin.
---
 .../src/org/netbeans/modules/nativeexecution/NativeProcessInfo.java | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git 
a/ide/dlight.nativeexecution/src/org/netbeans/modules/nativeexecution/NativeProcessInfo.java
 
b/ide/dlight.nativeexecution/src/org/netbeans/modules/nativeexecution/NativeProcessInfo.java
index be9211e..903206c 100644
--- 
a/ide/dlight.nativeexecution/src/org/netbeans/modules/nativeexecution/NativeProcessInfo.java
+++ 
b/ide/dlight.nativeexecution/src/org/netbeans/modules/nativeexecution/NativeProcessInfo.java
@@ -298,6 +298,12 @@ public final class NativeProcessInfo {
         boolean escape;
 
         for (String arg : arguments) {
+            if(!arg.contains(" ") && !arg.contains("$")) { // NOI18N
+                // This condition avoids quoting --login, [NETBEANS-4143]
+                sb.append(arg).append(' ');
+                continue;
+            }
+
             escape = false;
             sarg[0] = arg;
             arg = Utilities.escapeParameters(sarg);


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to