Skip to content

Commit

Permalink
[fix] Add back 'var_name'
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy C committed Jul 14, 2021
1 parent 7d070ad commit 5de723c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion osh/word_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -1148,7 +1148,8 @@ def _EvalBracedVarSub(self, part, part_vals, quoted):
# distinction is ignored.
maybe_decay_array = [False] # for $*, ${a[*]}, etc.

vtest_place = VTestPlace(None, None) # For ${foo=default}
var_name = None # type: str
vtest_place = VTestPlace(var_name, None) # For ${foo=default}

# 1. Evaluate from (var_name, var_num, token Id) -> value
if part.token.id == Id.VSub_Name:
Expand Down

0 comments on commit 5de723c

Please sign in to comment.