On 7/1/22 1:16 AM, Emanuele Torre wrote:
> Bash Version: 5.1
> Patch Level: 16
> Release Status: release
>
> Description:
> `local -p' (and also `declare -p'/`typeset -p') outputs
> "declare -- -" when used in a function that has declared
> `local -'.
>
> `declare -' (and `typeset -') is not a valid command, not even
> in functions.
> The only valid way to localise shell options is `local -'
Thanks for the report.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU [email protected] http://tiswww.cwru.edu/~chet/