Re: [@]@A weird behaviour when IFS does not contain space

2024-07-10 Thread Chet Ramey
On 7/4/24 2:51 AM, Emanuele Torre wrote: Hello. Normally, ${foo[@]@A} expands to multiple values, that are the arguments to run a declare command that sets foo to the current value/attributes. bash-5.2$ a=( abc xyz 123 ); declare -pa result=("${a[@]@A}") declare -a result=([0]="declar

Re: [@]@A weird behaviour when IFS does not contain space

2024-07-10 Thread Emanuele Torre
On Wed, Jul 10, 2024 at 09:24:03AM -0400, Chet Ramey wrote: > On 7/4/24 2:51 AM, Emanuele Torre wrote: > > Hello. > > > > Normally, ${foo[@]@A} expands to multiple values, that are the arguments > > to run a declare command that sets foo to the current value/attributes. > > > > bash-5.2$ a=(

Re: proposed BASH_SOURCE_PATH

2024-07-10 Thread Chet Ramey
On 7/7/24 3:34 PM, Greg Wooledge wrote: At this point, I'm just going to wait and see what gets implemented, and then figure out how that affects scripts and interactive shells in the future. I added -p to ./source, but that's it. It's in the devel branch. There's no reason to continue discuss