Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
095e805e
Commit
095e805e
authored
Apr 26, 2010
by
antirez
Browse files
don't output the newline when stdout is not a tty
parent
21cdc9f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
redis-cli.c
View file @
095e805e
...
@@ -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 */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment