Replace unnecessary calls to echo and cat

Tcl's exec can send data to stdout itself, no need to call cat/echo for
that usually.
This commit is contained in:
Michael Schlenker
2012-04-24 19:33:54 +02:00
committed by antirez
parent e337b26050
commit 7d6bf7956e
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -252,7 +252,7 @@ proc start_server {options {code undefined}} {
while 1 {
# check that the server actually started and is ready for connections
if {[exec cat $stdout | grep "ready to accept" | wc -l] > 0} {
if {[exec grep "ready to accept" | wc -l < $stdout] > 0} {
break
}
after 10