Skip to content

Commit

Permalink
[builtin/assign_osh] Fix oversight of BashAssoc({})
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Jan 4, 2025
1 parent b39a8c7 commit ed5b029
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion builtin/assign_osh.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,9 @@ def Run(self, cmd_val):
if arg.a:
rval = value.BashArray([]) # type: value_t
elif arg.A:
rval = value.BashAssoc({})
# mycpp limitation: NewDict() needs to be typed
tmp = NewDict() # type: Dict[str, str]
rval = value.BashAssoc(tmp)
else:
rval = None
else:
Expand Down

0 comments on commit ed5b029

Please sign in to comment.