]> gitweb.michael.orlitzky.com - hath.git/blobdiff - test/shell/manpage-barriers.test
Bulletproof the test suite and examples; version bump the cabal file.
[hath.git] / test / shell / manpage-barriers.test
index 4b8c1658e501fbadc7262a4b347bfdd6686adcfb..9ff3d5278739b64faff55d029514e8c63de6aef9 100644 (file)
@@ -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")
+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.
-echo "127.0.0.100" | grep -P $(dist/build/hath/hath -b <<< "127.0.0.1/32")
+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.
-echo "x127.0.0.1x" | grep -Po $(dist/build/hath/hath -b <<< "127.0.0.1/32")
+echo x127.0.0.1x | grep -Po $(echo 127.0.0.1/32 | dist/build/hath/hath -b)
 >>>
 x127.0.0.1x
 >>>= 0