bug-bash@gnu.org

2023-06-10 Thread Martin D Kealey
On Sun, 11 Jun 2023, 09:31 Grisha Levit, wrote: > The command printing code can fail to add a required semicolon when the > last word in the command ends with `&' > This could be obviated by unconditionally outputting a newline instead of a semicolon. I acknowledge that this style isn't to ever

bug-bash@gnu.org

2023-06-10 Thread Grisha Levit
The command printing code can fail to add a required semicolon when the last word in the command ends with `&' $ bash --pretty-print <<<$'{ \&;}' { \& } $ f() { if echo \&; then :; fi; } $ declare -f f f () { if echo \& then :; fi } $ eval "$(declare -f f)" bash: syntax error near