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
<Maja> i feel like this is gonna be of interest to the folks here: https://yossarian.net/til/post/some-surprising-code-execution-sources-in-bash
dakkar has joined ##bash-crimes
<isabella> really both are the same case
<isabella> it also applies to things like unset
<isabella> $ foo=()
<isabella> $ unset 'foo[$(date>&2)1]'
<isabella> Thu 21 Nov 09:29:46 GMT 2024
<Maja> also referring to non-numeric variables in arithmetic expressions: $ x='a[$(date>&2)]' ; (( x ))
<edk> isabella: do you know what "splatting bug" it's talking about?
<isabella> There's none
<isabella> It makes no difference in the left side of [[
<isabella> It also doesn't need ""
<edk> ye i thought so
<Maja> in the lobsters discussion, Andy lists 14 cases where this can happen: https://github.com/oils-for-unix/blog-code/blob/main/crazy-old-bug/ss2-demos.sh#L49
<isabella> they're literally all the same case
dakkar has quit [Quit: e via, verso nuove avventure]
<edk> i wonder if bash will fix it now
k4m1 has quit [Ping timeout: 252 seconds]
k4m1 has joined ##bash-crimes