[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: `declare -f` incorrectly displays `coproc` statement
From: |
Chet Ramey |
Subject: |
Re: `declare -f` incorrectly displays `coproc` statement |
Date: |
Mon, 11 Dec 2023 15:29:37 -0500 |
User-agent: |
Mozilla Thunderbird |
On 12/11/23 9:41 AM, Albert Akchurin wrote:
Machine Type: x86_64-pc-linux-gnu
Bash Version: 5.2
Patch Level: 21
Description:
`declare -f` wrongly displays the `coproc my_command` statement.
Thanks for the report. I agree that command printing should omit the
coproc name if the command is a simple command. The documentation warns
against using simple commands as coprocs, but the parser doesn't actually
prohibit it, and adding the coproc name there introduces ambiguity.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc
Description: OpenPGP digital signature