Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

valkey-cli: ensure output ends with a newline if missing when printing reply #1782

Merged
merged 5 commits into from
Feb 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/valkey-cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -2356,6 +2356,9 @@ static int cliSendCommand(int argc, char **argv, long repeat) {
output_raw = 1;
}

/* In a multi block, commands will return status strings instead of verbatim strings. */
if (config.in_multi) output_raw = 0;

if (!strcasecmp(command, "shutdown")) config.shutdown = 1;
if (!strcasecmp(command, "monitor")) config.monitor_mode = 1;
int is_subscribe =
Expand Down
Loading