[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug report for pretty-printing coprocesses with simple commands
From: |
Seth Sabar |
Subject: |
Bug report for pretty-printing coprocesses with simple commands |
Date: |
Tue, 27 Feb 2024 19:25:23 -0500 |
Hi,
I'd like to report a bug with the *--pretty-print* feature of bash. When I
run the following script:
*coproc sleep 5*
the pretty-printed result is
*coproc COPROC* sleep 5
The reason this happens is because within Bash's AST every *coproc* is
given a name regardless of whether the user specifies one and the default
is *COPROC*. However, per the bash manual only *coproc*s followed
*compound-command*s may have names. I believe this issue can be fixed in
*make_command_string_internal* in the case handling *cm_coproc* there
should be different cases based on what type of *command* it contains.
I discovered this issue via *coproc.tests* in *bash-5.2/tests/*.
Best,
Seth
- Bug report for pretty-printing coprocesses with simple commands,
Seth Sabar <=