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
@@ -7,7 +7,7 @@ start_server {tags {"aofrw"}} {
r bgrewriteaof
r config set appendonly no
r exec
set result [exec cat [srv 0 stdout] | tail -n1]
set result [exec tail -n1 < [srv 0 stdout] ]
} {*Killing*AOF*child*}
foreach d {string int} {