Re: bash manual on interactive shell

2021-12-12 Thread Mallika
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 option arguments". Are you saying that the 'only' could be easily i

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

2021-12-12 Thread Oğuz
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 $ declare -p a declare -A a=([foo]="bar" ) Oğuz

Re: bash manual on interactive shell

2021-12-12 Thread Lawrence Velázquez
On Sun, Dec 12, 2021, at 9:03 PM, Mallika wrote: > I'm a little confused about how all the and's and or's combine (I suppose > it's obvious if you're a little more familiar with the material - but it > would be great if it were possible to express this by indentation), It's a relatively confusing

bash manual on interactive shell

2021-12-12 Thread Mallika
ref: https://www.gnu.org/software/bash/manual/html_node/What-is-an-Interactive-Shell_003f.html "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 determi

Re: can't unset hash item with specific key

2021-12-12 Thread Andreas Kusalananda Kähäri
On Sun, Dec 12, 2021 at 08:47:21PM +0100, l.bash...@scarydevilmonastery.net wrote: > Configuration Information [Automatically generated, do not change]: > Machine: x86_64 > OS: linux-gnu > Compiler: gcc > Compilation CFLAGS: -g -O2 -fstack-protector-strong -Wformat > -Werror=format-security -Wall

can't unset hash item with specific key

2021-12-12 Thread l . bashbug
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall uname output: Linux h2 5.15.0-2-amd64 #1 SMP Debian 5.15.5-1 (2021-11-26) x86_64 GNU/Linux Ma