From 8c3d6931822329bedfee2c4f65fadbbb1befa6c9 Mon Sep 17 00:00:00 2001 From: zawz Date: Mon, 28 Jun 2021 17:18:34 +0200 Subject: [PATCH] fixed incorrect debashified echo in combined string and variable --- src/debashify.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/debashify.cpp b/src/debashify.cpp index ea89848..a4da449 100644 --- a/src/debashify.cpp +++ b/src/debashify.cpp @@ -255,7 +255,8 @@ bool debashify_echo(pipeline* pl) in->args->args[0] = new arg("printf"); lst = new list; - lst->add(new condlist(make_cmd({new arg("printf"), new arg(format_str+"\\ "), arg1 }))); + lst->add(new condlist(make_cmd({new arg("printf"), new arg(format_str), arg1 }))); + in->args->insert(1, new arg("\\ "+format_str) ); lst->add(new condlist(in)); } else