Commit 77455b9
Fix pid functions with cygwin shells
The actually problem is that vim automatically set &shellquote='"' when
&shell is some kind of posix-like shells. When &shellquote is '"',
writing double quotes in the command passed to system() would cause the
command to be misinterpreted, and producing the weird error as reported
in #108. The solution is to detect whether shellquote is set to double
quote, and alter the sent command accordingly.
Note that this issue would not affect default windows cmd shell, thus
the command should only be altered when *sh shells are used.
Fixes #108.1 parent c4390c5 commit 77455b9
2 files changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
581 | 581 | | |
582 | 582 | | |
583 | 583 | | |
584 | | - | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
585 | 589 | | |
586 | 590 | | |
587 | 591 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
75 | 79 | | |
76 | 80 | | |
| 81 | + | |
77 | 82 | | |
78 | 83 | | |
79 | 84 | | |
| |||
0 commit comments