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    c...@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to