160413.1.1 · Use printf in place of echo in tests
Setup:
$ . $TESTDIR/setup.sh
$ printf 'foo\n' > ./exitcodes_test.txt
$ printf 'bar\n' >> ./exitcodes_test.txt
Normal matching:
$ ag foo exitcodes_test.txt
1:foo
$ ag zoo exitcodes_test.txt
[1]
Inverted matching:
$ ag -v foo exitcodes_test.txt
2:bar
$ ag -v zoo exitcodes_test.txt
1:foo
2:bar
$ ag -v "foo|bar" exitcodes_test.txt
[1]