Fix printf output to use %s, not %q
This commit is contained in:
@@ -150,7 +150,7 @@ git_expand_args() {
|
|||||||
else
|
else
|
||||||
echo -n " "
|
echo -n " "
|
||||||
fi
|
fi
|
||||||
eval printf '%q' "\$$git_env_char$arg"
|
eval printf '%s' "\$$git_env_char$arg"
|
||||||
elif [[ "$arg" =~ ^[0-9]+\.\.[0-9]+$ ]]; then # Expand ranges into $e{*} variables
|
elif [[ "$arg" =~ ^[0-9]+\.\.[0-9]+$ ]]; then # Expand ranges into $e{*} variables
|
||||||
for i in $(eval echo {$arg}); do
|
for i in $(eval echo {$arg}); do
|
||||||
if [ "$first" -eq 1 ]; then
|
if [ "$first" -eq 1 ]; then
|
||||||
@@ -158,7 +158,7 @@ git_expand_args() {
|
|||||||
else
|
else
|
||||||
echo -n " "
|
echo -n " "
|
||||||
fi
|
fi
|
||||||
eval printf '%q' "\$$git_env_char$i"
|
eval printf '%s' "\$$git_env_char$i"
|
||||||
done
|
done
|
||||||
else # Otherwise, treat $arg as a normal string.
|
else # Otherwise, treat $arg as a normal string.
|
||||||
if [ "$first" -eq 1 ]; then
|
if [ "$first" -eq 1 ]; then
|
||||||
@@ -166,7 +166,7 @@ git_expand_args() {
|
|||||||
else
|
else
|
||||||
echo -n " "
|
echo -n " "
|
||||||
fi
|
fi
|
||||||
printf '%q' "$arg"
|
printf '%s' "$arg"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user