X-Git-Url: http://gitweb.michael.orlitzky.com/?p=hath.git;a=blobdiff_plain;f=test%2Fshell%2Fmanpage-barriers.test;h=9ff3d5278739b64faff55d029514e8c63de6aef9;hp=d50564b00983cfec0e06164f4bfac0cc3d6ba465;hb=2744428b39c7f253d6629335b9cb4122e224e177;hpb=02a793ab4325e5d04eb3ae3450aa33d01b4b4d1c diff --git a/test/shell/manpage-barriers.test b/test/shell/manpage-barriers.test index d50564b..9ff3d52 100644 --- a/test/shell/manpage-barriers.test +++ b/test/shell/manpage-barriers.test @@ -1,18 +1,18 @@ # Test the --barriers examples from the manpage. # The first one matches a line it probably shouldn't. -grep -P --color=never $(dist/build/hath/hath <<< 127.0.0.1/32) <<< 127.0.0.100 +echo 127.0.0.100 | grep -P $(echo 127.0.0.1/32 | dist/build/hath/hath) >>> 127.0.0.100 >>>= 0 # This one uses --barriers, and doesn't match that same line. -grep -P $(dist/build/hath/hath -b <<< 127.0.0.1/32) <<< 127.0.0.100 +echo 127.0.0.100 | grep -P $(echo 127.0.0.1/32 | dist/build/hath/hath -b) >>> >>>= 1 # But, using barriers makes the regexp match something it shouldn't. -grep -Po --color=never $(dist/build/hath/hath -b <<< 127.0.0.1/32) <<< x127.0.0.1x +echo x127.0.0.1x | grep -Po $(echo 127.0.0.1/32 | dist/build/hath/hath -b) >>> x127.0.0.1x >>>= 0