[PATCH 02/11] t7501-commit.sh: Not all seds understand option -i

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Junio C Hamano <gitster@...>
Cc: <git@...>, Johannes Sixt <johannes.sixt@...>
Date: Tuesday, November 13, 2007 - 4:04 pm

Use mv instead.

Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
---
 t/t7501-commit.sh |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/t/t7501-commit.sh b/t/t7501-commit.sh
index 4dc35bd..38db2f2 100644
--- a/t/t7501-commit.sh
+++ b/t/t7501-commit.sh
@@ -69,7 +69,8 @@ test_expect_success \
 
 cat >editor <<\EOF
 #!/bin/sh
-sed -i -e "s/a file/an amend commit/g" $1
+sed -e "s/a file/an amend commit/g" < $1 > $1-
+mv $1- $1
 EOF
 chmod 755 editor
 
@@ -88,7 +89,8 @@ test_expect_success \
 
 cat >editor <<\EOF
 #!/bin/sh
-sed -i -e "s/amend/older/g" $1
+sed -e "s/amend/older/g"  < $1 > $1-
+mv $1- $1
 EOF
 chmod 755 editor
 
-- 
1.5.3.5.1592.g0d6db

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/11] Miscellaneous MinGW port fallout, Johannes Sixt, (Tue Nov 13, 4:04 pm)
Re: [PATCH 0/11] Miscellaneous MinGW port fallout, Junio C Hamano, (Wed Nov 14, 7:02 am)
Re: [PATCH 0/11] Miscellaneous MinGW port fallout, Johannes Schindelin, (Wed Nov 14, 10:50 am)
Re: [PATCH 0/11] Miscellaneous MinGW port fallout, Junio C Hamano, (Wed Nov 14, 4:13 pm)
Re: [PATCH 0/11] Miscellaneous MinGW port fallout, Johannes Schindelin, (Wed Nov 14, 4:45 pm)
Re: [PATCH 0/11] Miscellaneous MinGW port fallout, Johannes Sixt, (Tue Nov 13, 4:10 pm)
Re: [PATCH 0/11] Miscellaneous MinGW port fallout, Junio C Hamano, (Tue Nov 13, 5:10 pm)
Re: [PATCH 0/11] Miscellaneous MinGW port fallout, Johannes Sixt, (Tue Nov 13, 5:32 pm)
Re: [PATCH 0/11] Miscellaneous MinGW port fallout, Johannes Schindelin, (Tue Nov 13, 5:46 pm)
Re: [PATCH 0/11] Miscellaneous MinGW port fallout, Junio C Hamano, (Tue Nov 13, 6:22 pm)
Re: [PATCH 0/11] Miscellaneous MinGW port fallout, Johannes Sixt, (Tue Nov 13, 5:54 pm)
[PATCH 02/11] t7501-commit.sh: Not all seds understand optio..., Johannes Sixt, (Tue Nov 13, 4:04 pm)