1 ## compare_shells: bash zsh
2
3 #### times shows two formatted lines
4 output=$(times)
5 echo "$output" | while read line
6 do
7 echo "$line" | egrep -q '[0-9]+m[0-9]+.[0-9]+s [0-9]+m[0-9]+.[0-9]+s' && echo "pass"
8 done
9
10 echo "$output" | wc -l
11 ## status: 0
12 ## STDOUT:
13 pass
14 pass
15 2
16 ## END