summaryrefslogtreecommitdiff
path: root/subst.c
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2022-09-09 16:44:32 -0400
committerChet Ramey <chet.ramey@case.edu>2022-09-09 16:44:32 -0400
commit9cef6d01181525de119832d2b6a925899cdec08e (patch)
tree59638a44fce485733b5a43825184998252693644 /subst.c
parentb3afafd86d27d61601cf380e1065d9170862fd10 (diff)
downloadbash-5.2-testing.tar.gz
Bash-5.2-rc4 releasebash-5.2-rc4bash-5.2-testing
Diffstat (limited to 'subst.c')
-rw-r--r--subst.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/subst.c b/subst.c
index f2987a51..d9feabca 100644
--- a/subst.c
+++ b/subst.c
@@ -8660,7 +8660,7 @@ parameter_brace_transform (varname, value, estatep, xform, rtype, quoted, pflags
return ((char *)NULL);
}
- if (valid_parameter_transform (xform) == 0)
+ if (xform[0] == 0 || valid_parameter_transform (xform) == 0)
{
this_command_name = oname;
if (vtype == VT_VARIABLE)