The behaviour of echo is inconsistent between implementations, in particular regarding whether it expands escapes like `\n`. Use printf consistently in test scripts to avoid test failures from inconsistent echo behaviour. Fixes #866.
17 lines
389 B
Perl
17 lines
389 B
Perl
Setup:
|
|
|
|
$ . $TESTDIR/../setup.sh
|
|
$ printf "hello=你好\n" > test.txt
|
|
$ printf "hello=你好\n" >> test.txt
|
|
|
|
Normal search:
|
|
|
|
$ $TESTDIR/../../ag --nocolor --workers=1 --parallel 你好
|
|
test.txt:1:hello=你好
|
|
test.txt:2:hello=你好
|
|
|
|
Case-insensitive search:
|
|
|
|
$ $TESTDIR/../../ag --nocolor --workers=1 --parallel -i 你好
|
|
test.txt:1:hello=你好
|
|
test.txt:2:hello=你好
|