Maja changed the topic of ##bash-crimes to: we bash back | club of folks preoccupied in whether they could, not whether they should | logs https://libera.irclog.whitequark.org/~h~bash-crimes
dermoth has quit [Ping timeout: 260 seconds]
dermoth has joined ##bash-crimes
dakkar has joined ##bash-crimes
<dakkar> https://s.thenautilus.net/notes/aa7w07nj6r I learned something new-to-me about bash, but also that's an hour of my life I'm not getting back
<dakkar> and I can't blame anyone: it's all my own code
<sdomi> i think I hit this once before, and made it a habit to declare local's at the top of the function and assign them separately
<sdomi> whether it would help here is unclear, i'm too tired to understand your exact usecase >,<
<sdomi> ohh, actually. i wonder if quoting the pointer variable could help here. like "${dictionary["$name"]}"
<dakkar> tried that, didn't make any difference
dakkar has quit [Ping timeout: 260 seconds]
mei[m] has joined ##bash-crimes
<mei[m]> maybe set -u would've helped
<mei[m]> also, pro tip: for debugging, use declare -p some_var instead of echo "$some_var"