From e0ae1e6f4d53c68bd219385f6f309c033d0fc673 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Mon, 21 Jun 2010 11:18:54 -0700 Subject: tests: remove unnecessary '^' from 'expr' regular expression As Brandon noticed, a regular expression match given to 'expr' is already anchored at the beginning. Some versions of expr even complain about this. Signed-off-by: Junio C Hamano --- t/t7005-editor.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't/t7005-editor.sh') diff --git a/t/t7005-editor.sh b/t/t7005-editor.sh index 5257f4d26..6355698c6 100755 --- a/t/t7005-editor.sh +++ b/t/t7005-editor.sh @@ -13,7 +13,7 @@ test_expect_success 'determine default editor' ' ' -if ! expr "$vi" : '^[a-z]*$' >/dev/null +if ! expr "$vi" : '[a-z]*$' >/dev/null then vi= fi -- cgit v1.2.1