cc-wrapper: quote when saving $PATH

This commit is contained in:
Vladimír Čunát 2016-01-25 09:54:10 +01:00
parent 5986aecc4c
commit 8f48a9756b
3 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
#! @shell@ -e #! @shell@ -e
path_backup=$PATH path_backup="$PATH"
if [ -n "@coreutils@" ]; then if [ -n "@coreutils@" ]; then
PATH="@coreutils@/bin:@gnugrep@/bin" PATH="@coreutils@/bin:@gnugrep@/bin"
fi fi
@ -145,5 +145,5 @@ if [ -n "$NIX_CC_WRAPPER_EXEC_HOOK" ]; then
source "$NIX_CC_WRAPPER_EXEC_HOOK" source "$NIX_CC_WRAPPER_EXEC_HOOK"
fi fi
PATH=$path_backup PATH="$path_backup"
exec @prog@ ${extraBefore[@]} "${params[@]}" "${extraAfter[@]}" exec @prog@ ${extraBefore[@]} "${params[@]}" "${extraAfter[@]}"

View File

@ -1,5 +1,5 @@
#! @shell@ -e #! @shell@ -e
path_backup=$PATH path_backup="$PATH"
if [ -n "@coreutils@" ]; then if [ -n "@coreutils@" ]; then
PATH="@coreutils@/bin" PATH="@coreutils@/bin"
fi fi
@ -104,5 +104,5 @@ if [ -n "$NIX_GNAT_WRAPPER_EXEC_HOOK" ]; then
source "$NIX_GNAT_WRAPPER_EXEC_HOOK" source "$NIX_GNAT_WRAPPER_EXEC_HOOK"
fi fi
PATH=$path_backup PATH="$path_backup"
exec @prog@ ${extraBefore[@]} "${params[@]}" ${extraAfter[@]} exec @prog@ ${extraBefore[@]} "${params[@]}" ${extraAfter[@]}

View File

@ -1,5 +1,5 @@
#! @shell@ -e #! @shell@ -e
path_backup=$PATH path_backup="$PATH"
if [ -n "@coreutils@" ]; then if [ -n "@coreutils@" ]; then
PATH="@coreutils@/bin" PATH="@coreutils@/bin"
fi fi
@ -167,5 +167,5 @@ if [ -n "$NIX_LD_WRAPPER_EXEC_HOOK" ]; then
source "$NIX_LD_WRAPPER_EXEC_HOOK" source "$NIX_LD_WRAPPER_EXEC_HOOK"
fi fi
PATH=$path_backup PATH="$path_backup"
exec @prog@ ${extraBefore[@]} "${params[@]}" ${extra[@]} exec @prog@ ${extraBefore[@]} "${params[@]}" ${extra[@]}