diff --git a/lib/path/tests/prop.sh b/lib/path/tests/prop.sh index c956e55bbfa..e48c6667fa0 100755 --- a/lib/path/tests/prop.sh +++ b/lib/path/tests/prop.sh @@ -55,7 +55,7 @@ fi declare -a strings=() mkdir -p "$tmp/strings" while IFS= read -r -d $'\0' str; do - echo -n "$str" > "$tmp/strings/${#strings[@]}" + printf "%s" "$str" > "$tmp/strings/${#strings[@]}" strings+=("$str") done < <(awk \ -f "$SCRIPT_DIR"/generate.awk \