From 0dbc4e89bb3ddaaa4230f91d5f59b08f3d33e91b Mon Sep 17 00:00:00 2001 From: Alex Riesen Date: Sun, 12 Feb 2006 19:05:34 +0100 Subject: 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 --- git-tag.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'git-tag.sh') diff --git a/git-tag.sh b/git-tag.sh index 6d0c973239..c74e1b4151 100755 --- a/git-tag.sh +++ b/git-tag.sh @@ -85,7 +85,8 @@ if [ "$annotate" ]; then 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 rm -f "$GIT_DIR"/TAG_TMP.asc "$GIT_DIR"/TAG_FINALMSG if [ "$signed" ]; then -- cgit v1.3