diff --git a/foreign_cc/private/framework/toolchains/freebsd_commands.bzl b/foreign_cc/private/framework/toolchains/freebsd_commands.bzl index 44d15f9f..ccc6e58b 100644 --- a/foreign_cc/private/framework/toolchains/freebsd_commands.bzl +++ b/foreign_cc/private/framework/toolchains/freebsd_commands.bzl @@ -83,7 +83,7 @@ if [ -d "$1" ]; then for file in ${files[@]+"${files[@]}"}; do local backup=$(mktemp) touch -r "${file}" "${backup}" - /usr/bin/sed -i '' -e 's@'"$2"'@'"$3"'@g' "${file}" + /usr/bin/sed -i '' -e 's'$'\001'"$2"$'\001'"$3"$'\001''g' "${file}" if [[ "$?" -ne "0" ]]; then exit 1 fi diff --git a/foreign_cc/private/framework/toolchains/linux_commands.bzl b/foreign_cc/private/framework/toolchains/linux_commands.bzl index 9352d7e6..ba265ebd 100644 --- a/foreign_cc/private/framework/toolchains/linux_commands.bzl +++ b/foreign_cc/private/framework/toolchains/linux_commands.bzl @@ -74,7 +74,7 @@ if [ -d "$1" ]; then for file in ${files[@]+"${files[@]}"}; do local backup=$(mktemp) touch -r "${file}" "${backup}" - sed -i 's@'"$2"'@'"$3"'@g' "${file}" + sed -i 's'$'\001'"$2"$'\001'"$3"$'\001''g' "${file}" if [[ "$?" -ne "0" ]]; then exit 1 fi diff --git a/foreign_cc/private/framework/toolchains/macos_commands.bzl b/foreign_cc/private/framework/toolchains/macos_commands.bzl index 0bf7aa8d..b21e112f 100644 --- a/foreign_cc/private/framework/toolchains/macos_commands.bzl +++ b/foreign_cc/private/framework/toolchains/macos_commands.bzl @@ -74,7 +74,7 @@ if [ -d "$1" ]; then for file in ${files[@]+"${files[@]}"}; do local backup=$(mktemp) touch -r "${file}" "${backup}" - /usr/bin/sed -i '' -e 's@'"$2"'@'"$3"'@g' "${file}" + /usr/bin/sed -i '' -e 's'$'\001'"$2"$'\001'"$3"$'\001''g' "${file}" if [[ "$?" -ne "0" ]]; then exit 1 fi diff --git a/foreign_cc/private/framework/toolchains/windows_commands.bzl b/foreign_cc/private/framework/toolchains/windows_commands.bzl index 585e1e25..144f31bf 100644 --- a/foreign_cc/private/framework/toolchains/windows_commands.bzl +++ b/foreign_cc/private/framework/toolchains/windows_commands.bzl @@ -78,7 +78,7 @@ if [ -d "$1" ]; then for file in ${files[@]+"${files[@]}"}; do local backup=$(mktemp) touch -r "${file}" "${backup}" - sed -i 's@'"${argv2}"'@'"${argv3}"'@g' "${file}" + sed -i 's'$'\001'"${argv2}"$'\001'"${argv3}"$'\001''g' "${file}" if [[ "$?" -ne "0" ]]; then exit 1 fi