Commit f257d49
Encapsulate Windows exec logic in platform.command(exe)
Replace the old base_command() function (which always returned
["cmd.exe", "/c"] on Windows, regardless of whether that was
appropriate) with a new command(exe) function that takes the executable
into account and returns the full invocation list.
This makes the "should I wrap in a shell?" decision live in platform
where it belongs, ensures it can't be called without providing the
executable, and eliminates the footgun that caused the parentheses bug.
As per apposed/appose-java@4849c5a
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>1 parent 7d2e080 commit f257d49
2 files changed
+21
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
| 291 | + | |
| 292 | + | |
302 | 293 | | |
303 | 294 | | |
304 | 295 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
130 | 140 | | |
131 | 141 | | |
132 | | - | |
| 142 | + | |
| 143 | + | |
133 | 144 | | |
134 | | - | |
135 | | - | |
136 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
0 commit comments