From f27bb49626c10b2285d57748c092c56bd7e2126e Mon Sep 17 00:00:00 2001 From: zawz Date: Sat, 14 Aug 2021 13:35:18 +0200 Subject: [PATCH] fix debashify applying on ${VAR:-val} --- src/debashify.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debashify.cpp b/src/debashify.cpp index 583f730..d8a9ba6 100644 --- a/src/debashify.cpp +++ b/src/debashify.cpp @@ -947,7 +947,7 @@ bool debashify_manipulation(arg* in, debashify_params* params) pl->add(sed); r = new subshell_subarg(new subshell(new list(new condlist(pl)))); } - else if(manip.size()>0 && manip[0] == ':') + else if(manip.size()>0 && manip[0] == ':' && !(manip.size()>1 && is_in(manip[1], "+-") ) ) { r = new subshell_subarg(new subshell(new list(debashify_manipulation_substring(v, params)))); }