]> git.saurik.com Git - redis.git/commitdiff
don't output the newline when stdout is not a tty
authorantirez <antirez@gmail.com>
Mon, 26 Apr 2010 17:56:16 +0000 (19:56 +0200)
committerantirez <antirez@gmail.com>
Mon, 26 Apr 2010 17:56:16 +0000 (19:56 +0200)
redis-cli.c

index 21959022e338e6daccdbbda619930885d3335ec7..d6cb06a0fb49044b889ca8a2a28eb3605087d35a 100644 (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 */