On Tue, Jun 16, 2015 at 01:56:31PM +0200, Michael Le Barbier Grünewald wrote:
>           1>&2 {
>             printf "$@"
>             printf '\n'
>           }

Redirections may appear anywhere in a simple command, but may only appear
at the END of a compound command.  Brace grouping is a compound command,
so this is actually a syntax error.

{
  printf "$@"
  printf '\n'
} 1>&2

would be valid.

Reply via email to