core/builtins/match.cif
changeset 83 2a78c4ff2eab
parent 0 7f656887cf89
equal deleted inserted replaced
78:6a2083f7eeb8 83:2a78c4ff2eab
    41 Copyright (c) 2006-2010 Accenture. All rights reserved.
    41 Copyright (c) 2006-2010 Accenture. All rights reserved.
    42 
    42 
    43 ==see-also
    43 ==see-also
    44 
    44 
    45 L<grep|grep>
    45 L<grep|grep>
       
    46 
       
    47 ==smoke-test
       
    48 
       
    49 echo "Test line of some sort^r^nIsn't fshell great?^r^nSome other line" | export -s TESTDATA
       
    50 echo "$TESTDATA" | match *fshell* | export -s RESULT
       
    51 var RESULT == "Isn't fshell great?^r^n" || $Error
       
    52 
       
    53 # Test anchored search
       
    54 echo "$TESTDATA" | match Some* | export -s RESULT
       
    55 var RESULT == "Some other line^r^n" || $Error