Replace \c-terminated echo calls by more portable printf calls.
diff --git a/git-flow-init b/git-flow-init
index 1408a9a..46e95af 100644
--- a/git-flow-init
+++ b/git-flow-init
@@ -78,7 +78,7 @@
done
fi
- echo "Branch name for production releases: [$default_suggestion] \c"
+ printf "Branch name for production releases: [$default_suggestion] "
read answer
master_branch=${answer:-$default_suggestion}
@@ -121,7 +121,7 @@
done
fi
- echo "Branch name for \"next release\" development: [$default_suggestion] \c"
+ printf "Branch name for \"next release\" development: [$default_suggestion] "
read answer
develop_branch=${answer:-$default_suggestion}
@@ -191,7 +191,7 @@
# Feature branches
if ! git config --get gitflow.prefix.feature >/dev/null 2>&1 || flag force; then
default_suggestion=$(git config --get gitflow.prefix.feature || echo feature/)
- echo "Feature branches? [$default_suggestion] \c"
+ printf "Feature branches? [$default_suggestion] "
read answer
[ "$answer" = "-" ] && prefix= || prefix=${answer:-$default_suggestion}
git config gitflow.prefix.feature "$prefix"
@@ -200,7 +200,7 @@
# Release branches
if ! git config --get gitflow.prefix.release >/dev/null 2>&1 || flag force; then
default_suggestion=$(git config --get gitflow.prefix.release || echo release/)
- echo "Release branches? [$default_suggestion] \c"
+ printf "Release branches? [$default_suggestion] "
read answer
[ "$answer" = "-" ] && prefix= || prefix=${answer:-$default_suggestion}
git config gitflow.prefix.release "$prefix"
@@ -210,7 +210,7 @@
# Hotfix branches
if ! git config --get gitflow.prefix.hotfix >/dev/null 2>&1 || flag force; then
default_suggestion=$(git config --get gitflow.prefix.hotfix || echo hotfix/)
- echo "Hotfix branches? [$default_suggestion] \c"
+ printf "Hotfix branches? [$default_suggestion] "
read answer
[ "$answer" = "-" ] && prefix= || prefix=${answer:-$default_suggestion}
git config gitflow.prefix.hotfix "$prefix"
@@ -220,7 +220,7 @@
# Support branches
if ! git config --get gitflow.prefix.support >/dev/null 2>&1 || flag force; then
default_suggestion=$(git config --get gitflow.prefix.support || echo support/)
- echo "Support branches? [$default_suggestion] \c"
+ printf "Support branches? [$default_suggestion] "
read answer
[ "$answer" = "-" ] && prefix= || prefix=${answer:-$default_suggestion}
git config gitflow.prefix.support "$prefix"
@@ -230,7 +230,7 @@
# Version tag prefix
if ! git config --get gitflow.prefix.versiontag >/dev/null 2>&1 || flag force; then
default_suggestion=$(git config --get gitflow.prefix.versiontag || echo "")
- echo "Version tag prefix? [$default_suggestion] \c"
+ printf "Version tag prefix? [$default_suggestion] "
read answer
[ "$answer" = "-" ] && prefix= || prefix=${answer:-$default_suggestion}
git config gitflow.prefix.versiontag "$prefix"