oilshell / oil

Oils is our upgrade path from bash to a better language and runtime. It's also for Python and JavaScript users who avoid shell!
http://www.oilshell.org/
Other
2.78k stars 150 forks source link

Abort with += on missing dict key #1985

Open jtb20 opened 4 weeks ago

jtb20 commented 4 weeks ago

This causes a runtime abort:

ysh ysh-0.22.0$ var Q={} ysh ysh-0.22.0$ setvar Q.missing += 1 terminate called after throwing an instance of 'KeyError*' Aborted