From c94a8f4c683e343aa9eb47008f4172e50d723b48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 17 Nov 2018 11:17:37 +0100 Subject: [PATCH] exec: fix command displayed in debug message --- src/plugins/exec/exec-command.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/exec/exec-command.c b/src/plugins/exec/exec-command.c index 1ba3bf53c..b5e4dfc52 100644 --- a/src/plugins/exec/exec-command.c +++ b/src/plugins/exec/exec-command.c @@ -576,9 +576,9 @@ exec_command_run (struct t_gui_buffer *buffer, { weechat_printf (NULL, "%s: executing command: \"%s%s%s\"", EXEC_PLUGIN_NAME, - (cmd_options.use_shell) ? "" : "sh -c '", + (cmd_options.use_shell) ? "sh -c '" : "", argv_eol[cmd_options.command_index], - (cmd_options.use_shell) ? "" : "'"); + (cmd_options.use_shell) ? "'" : ""); } new_exec_cmd->hook = weechat_hook_process_hashtable ( (cmd_options.use_shell) ? "sh" : argv_eol[cmd_options.command_index],