Re: `${array[index]=value}' broken in devel

2021-12-13 Thread Chet Ramey
On 12/13/21 2:36 AM, Oğuz wrote: > To reproduce: > > $ a=() > $ echo ${a[42]=foo} > Desktop Documents Downloads mpv-shot0001.jpg Music Pictures Public > Videos VirtualBox VMs > $ declare -p a > declare -a a=([42]="foo") > > or > > $ declare -A a > $ echo ${a[foo]=bar} > P�ϝU >

Re: can't unset hash item with specific key

2021-12-13 Thread Chet Ramey
On 12/12/21 2:47 PM, l.bash...@scarydevilmonastery.net wrote: > Bash Version: 5.1 > Patch Level: 12 > Release Status: release > > Description: > making left square bracket char ([) part of the key into a hash causes > unset to silently fail when trying to unset that specific hash

Re: bash manual on interactive shell

2021-12-13 Thread Kerin Millar
On Sun, 12 Dec 2021 23:51:22 -0800 Mallika wrote: > Hi! > > Thanks for the quick response! And for clearing up what 'option arguments' > means. > > I'm not sure I understood the last bit, though > >Something like "with only option arguments" could easily be misunderstood > as "with one or more

Re: bash manual on interactive shell

2021-12-13 Thread Oğuz
On Mon, Dec 13, 2021 at 8:31 AM Mallika wrote: > "An interactive shell is one started without non-option arguments, unles*s* > -s is specified, without specifying the -c option, and whose input and > error output are both connected to terminals (as determined by isatty(3)), or > one started with

Re: bash manual on interactive shell

2021-12-13 Thread Mallika
Or maybe "started without non-option arguments, i.e. without a command or filename"? On Sun, Dec 12, 2021 at 11:51 PM Mallika wrote: > Hi! > > Thanks for the quick response! And for clearing up what 'option arguments' > means. > > I'm not sure I understood the last bit, though > >Something