Skip to content

Commit

Permalink
patsub
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Chu committed Jul 13, 2019
1 parent c403133 commit 8caf4a4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions osh/word_eval.py
Expand Up @@ -771,6 +771,12 @@ def _EvalBracedVarSub(self, part, part_vals, quoted):
strs.append(replacer.Replace(s, op))
val = value.StrArray(strs)

elif val.tag == value_e.AssocArray:
strs = []
for s in val.d.itervalues():
strs.append(replacer.Replace(s, op))
val = value.StrArray(strs)

else:
raise AssertionError(val.__class__.__name__)

Expand Down

0 comments on commit 8caf4a4

Please sign in to comment.