On Fri, Oct 29, 2021 at 12:48:57PM +0300, Ilkka Virta wrote:
> Not that I'm sure the upper one is still safe against every input. I think
> issues with associative array keys have been
> discussed on the list before.

Sadly, yes.  Bash is the exploding barbed wire death match of programming
languages.  Every single feature of bash is capable of hurting you if you
use it in the naive or obvious way.

https://mywiki.wooledge.org/BashProgramming/05#Associative_Array_Index_Multiple_Expansions
https://mywiki.wooledge.org/BashPitfalls#pf61
https://mywiki.wooledge.org/BashPitfalls#pf62

Reply via email to