X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=test%2Fshell%2Fmanpage-barriers.test;h=d50564b00983cfec0e06164f4bfac0cc3d6ba465;hb=9b637112e7112180e3ddb6129a62b5e21953b469;hp=4b8c1658e501fbadc7262a4b347bfdd6686adcfb;hpb=8ee63239cbfeed3c96879d7dabe3b9dacb706f2f;p=hath.git diff --git a/test/shell/manpage-barriers.test b/test/shell/manpage-barriers.test index 4b8c165..d50564b 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. -echo "127.0.0.100" | grep -P $(dist/build/hath/hath <<< "127.0.0.1/32") +grep -P --color=never $(dist/build/hath/hath <<< 127.0.0.1/32) <<< 127.0.0.100 >>> 127.0.0.100 >>>= 0 # This one uses --barriers, and doesn't match that same line. -echo "127.0.0.100" | grep -P $(dist/build/hath/hath -b <<< "127.0.0.1/32") +grep -P $(dist/build/hath/hath -b <<< 127.0.0.1/32) <<< 127.0.0.100 >>> >>>= 1 # But, using barriers makes the regexp match something it shouldn't. -echo "x127.0.0.1x" | grep -Po $(dist/build/hath/hath -b <<< "127.0.0.1/32") +grep -Po --color=never $(dist/build/hath/hath -b <<< 127.0.0.1/32) <<< x127.0.0.1x >>> x127.0.0.1x >>>= 0