From c88870b0a38acdfb598057ec344cc3d5e3991933 Mon Sep 17 00:00:00 2001 From: Nicolas Viennot Date: Sun, 27 Mar 2016 23:33:39 -0400 Subject: [PATCH] Revert "Escape sent commands" This reverts commit 37c71cfe1587ffaea76776714bd38abe28697e83. --- arguments.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/arguments.c b/arguments.c index bcd2cd42..f7f8f737 100644 --- a/arguments.c +++ b/arguments.c @@ -177,34 +177,20 @@ args_print(struct args *args) args_print_add(&buf, &len, " -%c ", entry->flag); else args_print_add(&buf, &len, "-%c ", entry->flag); -#ifdef TMATE - if (strchr(entry->value, '\'') != NULL) - args_print_add(&buf, &len, "\"%s\"", entry->value); - else - args_print_add(&buf, &len, "'%s'", entry->value); -#else if (strchr(entry->value, ' ') != NULL) args_print_add(&buf, &len, "\"%s\"", entry->value); else args_print_add(&buf, &len, "%s", entry->value); -#endif } /* And finally the argument vector. */ for (i = 0; i < args->argc; i++) { if (*buf != '\0') args_print_add(&buf, &len, " "); -#ifdef TMATE - if (strchr(args->argv[i], '\'') != NULL) - args_print_add(&buf, &len, "\"%s\"", args->argv[i]); - else - args_print_add(&buf, &len, "'%s'", args->argv[i]); -#else if (strchr(args->argv[i], ' ') != NULL) args_print_add(&buf, &len, "\"%s\"", args->argv[i]); else args_print_add(&buf, &len, "%s", args->argv[i]); -#endif } return (buf);