don't output the newline when stdout is not a tty

This commit is contained in:
antirez 2010-04-26 19:56:16 +02:00
parent 21cdc9f064
commit 095e805e89

View File

@ -271,7 +271,6 @@ static int cliReadBulkReply(int fd) {
zfree(reply);
return 1;
}
if (reply[bulklen-1] != '\n') printf("\n");
} else {
/* If you are producing output for the standard output we want
* a more interesting output with quoted characters and so forth */