Re: ${var@A} expands to empty string for unset, but declared variables with no attributes

2022-04-07 Thread Chet Ramey
On 4/6/22 9:50 PM, Emanuele Torre wrote: Bash Version: 5.1 Patch Level: 16 Release Status: release Description: `${var@A}' only expands to something if either var is set or is declared with attributes; it doesn't expand to `declare -- var' for variables that are declared

${var@A} expands to empty string for unset, but declared variables with no attributes

2022-04-06 Thread Emanuele Torre
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/bash