Re: Ability to display parameters as global with `declare -gp`

2023-12-15 Thread Chet Ramey
On 12/11/23 10:01 AM, Albert Akchurin wrote: Bash Version: 5.2 Patch Level: 21 Release Status: release Description: `declare -p` loses the global flag passed to variable/array on definition. I think this behaviour is reasonable, but sometimes I need to save/restore

Ability to display parameters as global with `declare -gp`

2023-12-11 Thread Albert Akchurin
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -g -O2 uname output: Linux fs 6.5.11-7-pve #1 SMP PREEMPT_DYNAMIC PMX 6.5.11-7 (2023-12-05T09:44Z) x86_64 GNU/Linux Machine Type: x86_64-pc-linux-gnu Bash Vers