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:
committed by
antirez
parent
e337b26050
commit
7d6bf7956e
@@ -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} {
|
||||
|
||||
Reference in New Issue
Block a user