fix manipulation minify applying to bash arrays

This commit is contained in:
zawwz 2021-07-24 19:19:50 +02:00
parent cb6cf4a1d7
commit 4b8e3874e1

View file

@ -415,6 +415,8 @@ bool r_minify_empty_manip(_obj* in)
if(ss->var->is_manip)
{
// if is a manip: possibility to skip it
if(ss->var->index != nullptr) // is a var bash array: skip
return true;
if(i+1<t->sa.size() && t->sa[i+1]->type == _obj::subarg_string)
{
// if next subarg is a string: check its first char