Skip to contentSkip to conversation

rebase -i: Use : in expr command instead of match.

PATCH In review Brian Gernhardt 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 rebase -i: Use : in expr command instead of match.

expr match $str $pattern failed on OS X, and we already use expr $str : $pattern in several other commands.

---

 git-rebase--interactive.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
git-rebase--interactive.sh +1 -1
index 303b754..2a01182 100755
@@ -192,7 +192,7 @@ peek_next_command () {
 }
 
 mark_to_ref () {
-	if expr match "$1" "^:[0-9][0-9]*$" >/dev/null
+	if expr "$1" : "^:[0-9][0-9]*$" >/dev/null
 	then
 		echo "$mark_prefix$(printf %d ${1#:})"
 	else
Signature · 1 line
1.5.5.1.174.g8f57349