From 095e805e891798435944aa9082d45b3c69ed2dcf Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 26 Apr 2010 19:56:16 +0200 Subject: [PATCH] don't output the newline when stdout is not a tty --- redis-cli.c | 1 - 1 file changed, 1 deletion(-) 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 */