Artifact da4d2112a65fe1c0948714ed05af01acceec21d3:
- File tests/langbench/grep.tcl — part of check-in [69b737f5a1] at 2016-04-19 20:35:49 on branch little — Fork of Tcl used in the "Little" project. http://www.mcvoy.com/lm/little/index.html (user: dgp, size: 234) [annotate] [blame] [check-ins using]
proc grep {file} { set f [open $file rb] set buf "" while {[gets $f buf] >= 0} { if {[regexp -- {[^A-Za-z]fopen\(.*\)} $buf]} { puts $buf } } close $f } fconfigure stdout -translation binary foreach file $argv { grep $file }