Correct quoting
This commit is contained in:
		
							
								
								
									
										7
									
								
								lib/spack/env/cc
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								lib/spack/env/cc
									
									
									
									
										vendored
									
									
								
							@@ -289,14 +289,14 @@ if [[ $mode = ccld ]]; then
 | 
			
		||||
    #         args=("-Wl,-rpath,$dir" "${args[@]}")
 | 
			
		||||
    #     fi
 | 
			
		||||
    # done
 | 
			
		||||
    args=("-Wl,-rpath,$SPACK_PREFIX/lib" "-Wl,-rpath,$SPACK_PREFIX/lib64" ${args[@]})
 | 
			
		||||
    args=("-Wl,-rpath,$SPACK_PREFIX/lib" "-Wl,-rpath,$SPACK_PREFIX/lib64" "${args[@]}")
 | 
			
		||||
elif [[ $mode = ld ]]; then
 | 
			
		||||
    # for dir in "${libraries[@]}"; do
 | 
			
		||||
    #     if [[ dir = $SPACK_INSTALL* ]]; then
 | 
			
		||||
    #         args=("-rpath" "$dir" "${args[@]}")
 | 
			
		||||
    #     fi
 | 
			
		||||
    # done
 | 
			
		||||
    args=("-rpath" "$SPACK_PREFIX/lib" "-rpath" "$SPACK_PREFIX/lib64" ${args[@]})
 | 
			
		||||
    args=("-rpath" "$SPACK_PREFIX/lib" "-rpath" "$SPACK_PREFIX/lib64" "${args[@]}")
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
@@ -325,8 +325,7 @@ for dir in "${env_path[@]}"; do
 | 
			
		||||
done
 | 
			
		||||
export PATH
 | 
			
		||||
 | 
			
		||||
full_command=("$command")
 | 
			
		||||
full_command+=("${args[@]}")
 | 
			
		||||
full_command=("$command" "${args[@]}")
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# Write the input and output commands to debug logs if it's asked for.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user