Re: `declare -f' does not output the "function" keyword when required

2022-12-05 Thread Chet Ramey
On 12/3/22 6:05 AM, Emanuele Torre wrote: In Bash, it is possible to define functions that look like assignment words using the function keyword: function a=2 { printf hi\\n ;} When `declare -f' is used to output all the function definitions, bash will not output that function definition

`declare -f' does not output the "function" keyword when required

2022-12-03 Thread Emanuele Torre
In Bash, it is possible to define functions that look like assignment words using the function keyword: function a=2 { printf hi\\n ;} When `declare -f' is used to output all the function definitions, bash will not output that function definition with the "function" keyword, generating