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