fixed incorrect debashified echo in combined string and variable

This commit is contained in:
zawz 2021-06-28 17:18:34 +02:00
parent 0e6fc1262d
commit 8c3d693182

View file

@ -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