Git development
 help / color / mirror / Atom feed
* [PATCH 1/2] rebase -i: Use : in expr command instead of match.
@ 2008-04-27 15:10 Brian Gernhardt
  0 siblings, 0 replies; only message in thread
From: Brian Gernhardt @ 2008-04-27 15:10 UTC (permalink / raw)
  To: git

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

Signed-off-by: Brian Gernhardt <benji@silverinsanity.com>
---

 git-rebase--interactive.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/git-rebase--interactive.sh b/git-rebase--interactive.sh
index 303b754..2a01182 100755
--- a/git-rebase--interactive.sh
+++ b/git-rebase--interactive.sh
@@ -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
-- 
1.5.5.1.174.g8f57349

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-04-27 15:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-27 15:10 [PATCH 1/2] rebase -i: Use : in expr command instead of match Brian Gernhardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox