nameref to array[@] doesn't always expand to multiple words

2021-01-19 Thread Oğuz
See: $ a=(1 2 3) $ b=a[@] $ declare -n c=a[@] $ $ printf '<%s>\n' "${!b}" <1> <2> <3> $ printf '<%s>\n' "$c" <1 2 3> $ printf '<%s>\n' "${!b}$c" <1> <2> <31> <2> <3> This is reproducible on devel too. Oğuz

Re: nameref to array[@] doesn't always expand to multiple words

2021-01-19 Thread Greg Wooledge
On Tue, Jan 19, 2021 at 01:38:13PM +0300, Oğuz wrote: > $ declare -n c=a[@] "However, nameref variables can reference array variables and subscripted array variables." Is a[@] a "subscripted array variable"?

Re: nameref to array[@] doesn't always expand to multiple words

2021-01-19 Thread Oğuz
19 Ocak 2021 Salı tarihinde Greg Wooledge yazdı: > On Tue, Jan 19, 2021 at 01:38:13PM +0300, Oğuz wrote: > > $ declare -n c=a[@] > > "However, nameref variables can reference array variables and > subscripted array variables." > > Is a[@] a "subscripted array variable"? > It is, `@' is the

hyphens (-) and underscores (_) are not treated as equivalent with completion-map-case and completion-ignore-case enabled

2021-01-19 Thread awa54
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -DDEFAULT_PATH_VALUE='/usr/local/sbin:/usr/local/bin:/usr/bin' -DSTANDARD_UTILS_PATH='/usr/bin' -DSYS_BASHRC='/etc/b

Parallel make race in 5.1

2021-01-19 Thread Richard Purdie
Hi, In bash 5.1 we're seeing a parallel make race during build, as found a couple of times in our automated CI for Yocto Project: https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/1720/steps/14/logs/stdio https://autobuilder.yoctoproject.org/typhoon/#/builders/44/builds/2969/steps

Re: Parallel make race in 5.1

2021-01-19 Thread Chet Ramey
On 1/19/21 9:19 AM, Richard Purdie wrote: Hi, In bash 5.1 we're seeing a parallel make race during build, as found a couple of times in our automated CI for Yocto Project: Thanks for the report. Interesting. I haven't seen this one either. The issue is around pipesize.h which in 5.1 can be b

Re: hyphens (-) and underscores (_) are not treated as equivalent with completion-map-case and completion-ignore-case enabled

2021-01-19 Thread Chet Ramey
On 1/19/21 8:30 AM, aw...@cdak.net wrote: Bash Version: 5.1 Patch Level: 4 Release Status: release Description: man bash says: > completion-map-case (Off) > If set to On, and completion-ignore-case is enabled, readline treats hyphens (-) and underscores (_) as equivalent when performing ca