Re: [PATCH] fix printing command after group with heredoc

2023-06-30 Thread Chet Ramey
On 6/29/23 4:05 AM, Grisha Levit wrote: If the last redirection list in a group / subshell / substitution has a heredoc and the following connector is a semicolon, the connector is incorrectly skipped over. Try this patch instead: *** ../bash-20230628/print_cmd.cMon Jun 26 16:56:46 202

[PATCH] fix printing command after group with heredoc

2023-06-29 Thread Grisha Levit
If the last redirection list in a group / subshell / substitution has a heredoc and the following connector is a semicolon, the connector is incorrectly skipped over. This happens only outside of function definitions, so I think it's an issue only for pretty-print mode. bash --pretty-print <<<$'(