Re: Alias/heredoc/cmdsubst regression

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 25/01/2020 16:26, Martijn Dekker wrote:
Op 25-01-20 om 02:38 schreef Harald van Dijk:
   alias BEGIN='{' END='}'
   : <<EOF &&
   $(echo hi)
   EOF
   BEGIN
   echo ok
   END

This has been failing for longer. This prints "Syntax error: "(" unexpected" since at least 0.5.1.

Interesting. For me, this one prints (on dash 0.5.7 until current):
testalias2.sh: 5: testalias2.sh: {: not found
ok
testalias2.sh: 7: testalias2.sh: Syntax error: "}" unexpected

Oops! That is what it prints for me too and dash has done so since 0.5.1 (except for the line numbers in the error messages). I got the "Syntax error: "(" unexpected" on another test, was typing up an e-mail, noticed my test was overly complicated, simplified it, verified that it still failed since 0.5.1, but forgot to update the error message in my mail. Sorry for the confusion.

Cheers,
Harald van Dijk



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux