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
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