Skip to content

Commit fcd0e4f

Browse files
authored
replace $* with "$@" to properly preserve spaces in argumnents (dotnet#26404)
1 parent 4362b25 commit fcd0e4f

8 files changed

+9
-9
lines changed

build-managed.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env bash
22
working_tree_root="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
3-
$working_tree_root/run.sh build-managed $*
3+
$working_tree_root/run.sh build-managed "$@"
44
exit $?

build-native.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
22
working_tree_root="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
33
#The Run Command Tool is calling src/Native/build-native.sh
4-
$working_tree_root/run.sh build-native $*
4+
$working_tree_root/run.sh build-native "$@"
55
exit $?

build-packages.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env bash
22
working_tree_root="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
3-
$working_tree_root/run.sh build-managed -packages $*
3+
$working_tree_root/run.sh build-managed -packages "$@"
44
exit $?

build.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ if [ "$1" != "" ] && [[ "$1" != -* ]]; then
3838
fi
3939
fi
4040

41-
"$__scriptpath/build-native.sh" $*
41+
"$__scriptpath/build-native.sh" "$@"
4242
if [ $? -ne 0 ];then
4343
exit 1
4444
fi
4545

46-
"$__scriptpath/build-managed.sh" -BuildPackages=true $*
46+
"$__scriptpath/build-managed.sh" -BuildPackages=true "$@"
4747
exit $?

clean.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ if [ $# == 0 ]; then
3333
__args=-b
3434
fi
3535

36-
$__working_tree_root/run.sh clean $__args $*
36+
$__working_tree_root/run.sh clean $__args "$@"
3737
exit $?

publish-packages.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env bash
22
working_tree_root="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
3-
$working_tree_root/run.sh publish-packages $*
3+
$working_tree_root/run.sh publish-packages "$@"
44
exit $?

run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ __toolRuntime=$__scriptpath/Tools
1414
__dotnet=$__toolRuntime/dotnetcli/dotnet
1515

1616
cd $__scriptpath
17-
$__dotnet $__toolRuntime/run.exe $__scriptpath/config.json $*
17+
$__dotnet $__toolRuntime/run.exe $__scriptpath/config.json "$@"
1818
exit $?

sync.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ fi
66

77
working_tree_root="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
88

9-
$working_tree_root/run.sh sync $__args $*
9+
$working_tree_root/run.sh sync $__args "$@"
1010
exit $?

0 commit comments

Comments
 (0)