]> gitweb.michael.orlitzky.com - hath.git/blob - test/shell/manpage-barriers.test
d50564b00983cfec0e06164f4bfac0cc3d6ba465
[hath.git] / test / shell / manpage-barriers.test
1 # Test the --barriers examples from the manpage.
2
3 # The first one matches a line it probably shouldn't.
4 grep -P --color=never $(dist/build/hath/hath <<< 127.0.0.1/32) <<< 127.0.0.100
5 >>>
6 127.0.0.100
7 >>>= 0
8
9 # This one uses --barriers, and doesn't match that same line.
10 grep -P $(dist/build/hath/hath -b <<< 127.0.0.1/32) <<< 127.0.0.100
11 >>>
12 >>>= 1
13
14 # But, using barriers makes the regexp match something it shouldn't.
15 grep -Po --color=never $(dist/build/hath/hath -b <<< 127.0.0.1/32) <<< x127.0.0.1x
16 >>>
17 x127.0.0.1x
18 >>>= 0