| 1 | Suppress a warning from grep which causes tests to fail.
|
| 2 |
|
| 3 | Taken from upstream pull request:
|
| 4 |
|
| 5 | https://github.com/aureliojargas/clitest/pull/54
|
| 6 |
|
| 7 | diff --git a/test/inline-match-egrep.sh b/test/inline-match-egrep.sh
|
| 8 | |
| 9 | |
| 10 | @@ -42,7 +42,7 @@ $ printf ' \t \t\t \n' #=> --egrep ^ $
|
| 11 | # egrep regexes. You'll need to test in your system if that's the
|
| 12 | # case. I recommend using a literal tab to avoid problems.
|
| 13 |
|
| 14 | -$ printf 'may\tfail' #=> --egrep ^may\tfail$
|
| 15 | +$ printf 'may\tfail' #=> --egrep ^may\\tfail$
|
| 16 | $ printf 'may\tfail' #=> --egrep ^may[\t]fail$
|
| 17 | $ printf 'will\tmatch' #=> --egrep ^will match$
|
| 18 |
|
| 19 | @@ -51,7 +51,7 @@ $ printf 'will\tmatch' #=> --egrep ^will match$
|
| 20 | # These tests will fail:
|
| 21 |
|
| 22 | $ printf 'will\nfail' #=> --egrep will.*fail
|
| 23 | -$ printf 'will\nfail' #=> --egrep will\nfail
|
| 24 | +$ printf 'will\nfail' #=> --egrep will\\nfail
|
| 25 |
|
| 26 | # If one line of a multiline results matches, the test is OK
|
| 27 |
|