File tree 2 files changed +6
-9
lines changed
2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 1
- @ ECHO OFF
1
+ @ REM @ ECHO OFF
2
2
SETLOCAL enabledelayedexpansion
3
3
4
4
:: The first argument is expected to be `--`, this must be skipped
@@ -15,18 +15,17 @@ for %%A in (%*) do (
15
15
:: Ensure the rustc.exe path is executable by sanitizing any `/` to `\`
16
16
SET " arg = %%~A "
17
17
SET " arg = !arg:/ =\ ! "
18
+ SET " arg = !arg:=^= ! "
18
19
SET " command_args = !command_args! !arg! "
19
20
) else (
20
21
:: Account for any arguments which contain `${pwd}` (a place holder for the current working directiron)
21
- set " arg = %%~A "
22
- set " arg = !arg:${pwd} =%CD% ! "
23
- set " command_args = !command_args! !arg! "
22
+ SET " arg = %%~A "
23
+ SET " arg = !arg:${pwd} =%CD% ! "
24
+ SET " arg = !arg:=^= ! "
25
+ SET " command_args = !command_args! !arg! "
24
26
)
25
27
SET /a " arg_count += 1"
26
28
)
27
29
28
- :: append "--remap-path-prefix" with the current working directory
29
- SET " command_args = !command_args! " --remap-path-prefix = %CD% ="
30
-
31
30
:: Execute the provided command with arguments
32
31
%command_args%
Original file line number Diff line number Diff line change @@ -15,6 +15,4 @@ for arg in "$@"; do
15
15
args+=(" ${arg} " )
16
16
done
17
17
18
- set -x
19
-
20
18
exec " ${args[@]} "
You can’t perform that action at this time.
0 commit comments