git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] test-bzr: Do not use unportable sed "\+"
@ 2013-05-11 13:25 Torsten Bögershausen
  2013-05-11 18:52 ` Junio C Hamano
  2013-05-11 20:11 ` [PATCH] test-bzr: Do not use unportable sed "\+" Torsten Bögershausen
  0 siblings, 2 replies; 13+ messages in thread
From: Torsten Bögershausen @ 2013-05-11 13:25 UTC (permalink / raw)
  To: felipe.contreras; +Cc: git

Using sed -e '/[0-9]\+//' to find "one ore more" digits
is not portable.
Use the Basic Regular Expression '/[0-9][0-9]*//' instead

Signed-off-by: Torsten Bögershausen <tboegi@web.de>
---
 contrib/remote-helpers/test-bzr.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/remote-helpers/test-bzr.sh b/contrib/remote-helpers/test-bzr.sh
index d9c32f4..5dfa070 100755
--- a/contrib/remote-helpers/test-bzr.sh
+++ b/contrib/remote-helpers/test-bzr.sh
@@ -328,7 +328,7 @@ test_expect_success 'strip' '
 
   echo four >> content &&
   bzr commit -m four &&
-  bzr log --line | sed -e "s/^[0-9]\+: //" > ../expected
+  bzr log --line | sed -e "s/^[0-9][0-9]*: //" > ../expected
   ) &&
 
   (cd gitrepo &&
-- 
1.8.2.1.614.g66d7af5

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2013-05-13 18:36 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-11 13:25 [PATCH] test-bzr: Do not use unportable sed "\+" Torsten Bögershausen
2013-05-11 18:52 ` Junio C Hamano
2013-05-11 19:45   ` Junio C Hamano
2013-05-11 20:00     ` Torsten Bögershausen
2013-05-11 20:09       ` Junio C Hamano
2013-05-11 20:35         ` Torsten Bögershausen
2013-05-12  3:14           ` Junio C Hamano
2013-05-12 22:50             ` [PATCH] t5551: do not use unportable sed '\+' Junio C Hamano
2013-05-13 15:17               ` Torsten Bögershausen
2013-05-13 16:30                 ` Junio C Hamano
2013-05-13 18:24                   ` Torsten Bögershausen
2013-05-13 18:36                     ` Junio C Hamano
2013-05-11 20:11 ` [PATCH] test-bzr: Do not use unportable sed "\+" Torsten Bögershausen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).