summaryrefslogtreecommitdiff
path: root/t/t7005-editor.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2010-06-21 11:18:54 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-06-21 11:18:54 -0700
commite0ae1e6f4d53c68bd219385f6f309c033d0fc673 (patch)
treedb8496da50b27acd1b413c371ef30528ebeae643 /t/t7005-editor.sh
parentUpdate draft release notes to 1.7.1.1 (diff)
downloadtgif-e0ae1e6f4d53c68bd219385f6f309c033d0fc673.tar.xz
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 <gitster@pobox.com>
Diffstat (limited to 't/t7005-editor.sh')
-rwxr-xr-xt/t7005-editor.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t7005-editor.sh b/t/t7005-editor.sh
index 5257f4d261..6355698c6b 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