Skip to content

Commit ba1dec3

Browse files
mtelkagitster
authored andcommitted
t/t9902-completion.sh: backslashes in echo
The usage of backslashes in echo is not portable. Since some tests tries to output strings containing '\b' it is safer to use printf here. The usage of printf instead of echo is also preferred by POSIX. Signed-off-by: Marcel Telka <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0f063b6 commit ba1dec3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t9902-completion.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ _get_comp_words_by_ref ()
7373
print_comp ()
7474
{
7575
local IFS=$'\n'
76-
echo "${COMPREPLY[*]}" > out
76+
printf '%s\n' "${COMPREPLY[*]}" > out
7777
}
7878

7979
run_completion ()

0 commit comments

Comments
 (0)