From: antirez Date: Mon, 26 Apr 2010 17:56:16 +0000 (+0200) Subject: don't output the newline when stdout is not a tty X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/095e805e891798435944aa9082d45b3c69ed2dcf don't output the newline when stdout is not a tty --- diff --git a/redis-cli.c b/redis-cli.c index 21959022..d6cb06a0 100644 --- a/redis-cli.c +++ b/redis-cli.c @@ -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 */