Commit 095e805e authored by antirez's avatar antirez
Browse files

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

parent 21cdc9f0
...@@ -271,7 +271,6 @@ static int cliReadBulkReply(int fd) { ...@@ -271,7 +271,6 @@ static int cliReadBulkReply(int fd) {
zfree(reply); zfree(reply);
return 1; return 1;
} }
if (reply[bulklen-1] != '\n') printf("\n");
} else { } else {
/* If you are producing output for the standard output we want /* If you are producing output for the standard output we want
* a more interesting output with quoted characters and so forth */ * a more interesting output with quoted characters and so forth */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment