summaryrefslogtreecommitdiff
path: root/git-tag.sh
diff options
context:
space:
mode:
authorAlex Riesen <raa.lkml@gmail.com>2006-02-12 18:05:34 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-02-12 19:36:19 (GMT)
commit0dbc4e89bb3ddaaa4230f91d5f59b08f3d33e91b (patch)
tree83b4a61775c284b8260893439e0009b4e349db20 /git-tag.sh
parentef1af9d9afe2f402ad60b054ac529c03c4b79299 (diff)
downloadgit-0dbc4e89bb3ddaaa4230f91d5f59b08f3d33e91b.zip
git-0dbc4e89bb3ddaaa4230f91d5f59b08f3d33e91b.tar.gz
git-0dbc4e89bb3ddaaa4230f91d5f59b08f3d33e91b.tar.bz2
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>
Diffstat (limited to 'git-tag.sh')
-rwxr-xr-xgit-tag.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/git-tag.sh b/git-tag.sh
index 6d0c973..c74e1b4 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