[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] Expansions in associative array subscripts
From: |
Greg Wooledge |
Subject: |
Re: [Help-bash] Expansions in associative array subscripts |
Date: |
Wed, 7 Aug 2019 10:37:29 -0400 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
On Wed, Aug 07, 2019 at 09:19:17AM -0500, Jesse Hathaway wrote:
> That is nasty, thanks for detailed explanation, shellcheck provides a
> good warning message as well:
>
> unset a[1]
> ^--^ SC2184: Quote arguments to unset so they're not glob expanded.
>
> For more information:
> https://www.shellcheck.net/wiki/SC2184 -- Quote arguments to unset
> so they'...
For the record, it's also at:
https://mywiki.wooledge.org/BashPitfalls#pf57
https://mywiki.wooledge.org/BashFAQ/005