X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=t%2Ft7006-pager.sh;h=9a83241c942f63c7c7b2f5c739164c34c80ab68d;hb=5bfd53629e93113a17fe7d6a7a24554dc3c17cdb;hp=a6f3677731af38293e4bbae2b14e46d7e3a9107e;hpb=8718e875080767f2c8d06c55c3fb5a6dddf0e5a0;p=git.git diff --git a/t/t7006-pager.sh b/t/t7006-pager.sh index a6f367773..9a83241c9 100755 --- a/t/t7006-pager.sh +++ b/t/t7006-pager.sh @@ -109,7 +109,7 @@ test_expect_success TTY 'no pager with --no-pager' ' # for the first color; the text "commit" comes later. colorful() { read firstline <$1 - ! expr "$firstline" : "^[a-zA-Z]" >/dev/null + ! expr "$firstline" : "[a-zA-Z]" >/dev/null } test_expect_success 'tests can detect color' ' @@ -167,7 +167,7 @@ test_expect_success 'determine default pager' ' test -n "$less" ' -if expr "$less" : '^[a-z][a-z]*$' >/dev/null && test_have_prereq TTY +if expr "$less" : '[a-z][a-z]*$' >/dev/null && test_have_prereq TTY then test_set_prereq SIMPLEPAGER fi