--- a/core/builtins/match.cif Wed Sep 15 00:45:50 2010 +0100
+++ b/core/builtins/match.cif Fri Sep 17 20:24:30 2010 +0100
@@ -43,3 +43,13 @@
==see-also
L<grep|grep>
+
+==smoke-test
+
+echo "Test line of some sort^r^nIsn't fshell great?^r^nSome other line" | export -s TESTDATA
+echo "$TESTDATA" | match *fshell* | export -s RESULT
+var RESULT == "Isn't fshell great?^r^n" || $Error
+
+# Test anchored search
+echo "$TESTDATA" | match Some* | export -s RESULT
+var RESULT == "Some other line^r^n" || $Error