avoid echo -e, there are systems where it does not work
FreeBSD 4.11 being one example: the built-in echo doesn't have -e, and the installed /bin/echo does not do "-e" as well. "printf" works, laking just "\e" and "\xAB'. Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
ef1af9d9af
commit
0dbc4e89bb
@ -85,7 +85,8 @@ if [ "$annotate" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
( echo -e "object $object\ntype $type\ntag $name\ntagger $tagger\n";
|
( printf 'object %s\ntype %s\ntag %s\ntagger %s\n\n' \
|
||||||
|
"$object" "$type" "$name" "$tagger";
|
||||||
cat "$GIT_DIR"/TAG_FINALMSG ) >"$GIT_DIR"/TAG_TMP
|
cat "$GIT_DIR"/TAG_FINALMSG ) >"$GIT_DIR"/TAG_TMP
|
||||||
rm -f "$GIT_DIR"/TAG_TMP.asc "$GIT_DIR"/TAG_FINALMSG
|
rm -f "$GIT_DIR"/TAG_TMP.asc "$GIT_DIR"/TAG_FINALMSG
|
||||||
if [ "$signed" ]; then
|
if [ "$signed" ]; then
|
||||||
|
@ -68,7 +68,7 @@ test_expect_success \
|
|||||||
diff -u expect output'
|
diff -u expect output'
|
||||||
|
|
||||||
# Test \r\n (MSDOS-like systems)
|
# Test \r\n (MSDOS-like systems)
|
||||||
echo -ne '*.1\r\n/*.3\r\n!*.6\r\n' >.gitignore
|
printf '*.1\r\n/*.3\r\n!*.6\r\n' >.gitignore
|
||||||
|
|
||||||
test_expect_success \
|
test_expect_success \
|
||||||
'git-ls-files --others with \r\n line endings.' \
|
'git-ls-files --others with \r\n line endings.' \
|
||||||
|
Loading…
Reference in New Issue
Block a user