Use space (' ') instead of '?' as a pattern terminator.
diff --git a/git-flow-hotfix b/git-flow-hotfix
index e7ff5e2..0b4ab25 100644
--- a/git-flow-hotfix
+++ b/git-flow-hotfix
@@ -38,7 +38,7 @@
exit 0
fi
current_branch=$(git branch | grep '^\* ' | grep -v 'no branch' | sed 's/^* //g')
- short_names=$(echo "$hotfix_branches" | sed "s?^$PREFIX??g")
+ short_names=$(echo "$hotfix_branches" | sed "s ^$PREFIX g")
# determine column width first
typeset -i width=0
diff --git a/git-flow-release b/git-flow-release
index 95c695d..e127131 100644
--- a/git-flow-release
+++ b/git-flow-release
@@ -50,7 +50,7 @@
fi
current_branch=$(git branch | grep '^\* ' | grep -v 'no branch' | sed 's/^* //g')
- short_names=$(echo "$release_branches" | sed "s?^$PREFIX??g")
+ short_names=$(echo "$release_branches" | sed "s ^$PREFIX g")
# determine column width first
typeset -i width=0
diff --git a/git-flow-support b/git-flow-support
index 1f5918f..3139f22 100644
--- a/git-flow-support
+++ b/git-flow-support
@@ -40,7 +40,7 @@
exit 0
fi
current_branch=$(git branch | grep '^\* ' | grep -v 'no branch' | sed 's/^* //g')
- short_names=$(echo "$support_branches" | sed "s?^$PREFIX??g")
+ short_names=$(echo "$support_branches" | sed "s ^$PREFIX g")
# determine column width first
typeset -i width=0