nalika / rpms / bash

Forked from rpms/bash 2 years ago
Clone
9cbdf4
diff --git a/subst.c b/subst.c
9cbdf4
--- a/subst.c
9cbdf4
+++ b/subst.c
9cbdf4
@@ -7959,7 +7959,7 @@ parameter_brace_transform (varname, value, ind, xform, rtype, quoted, pflags, fl
9cbdf4
       return ((char *)NULL);
9cbdf4
     }
9cbdf4
 
9cbdf4
-  if (valid_parameter_transform (xform) == 0)
9cbdf4
+  if (xform[0] == 0 || valid_parameter_transform (xform) == 0)
9cbdf4
     {
9cbdf4
       this_command_name = oname;
9cbdf4
 #if 0 /* TAG: bash-5.2 Martin Schulte <gnu@schrader-schulte.de> 10/2020 */