Re: Nested expansion in heredoc fails

2023-01-10 Thread Norbert Lange
On Wed, 14 Dec 2022, 16:09 Chet Ramey, wrote: > On 12/13/22 12:42 PM, Norbert Lange wrote: > > > Bash Version: 5.2 > > Patch Level: 2 > > Release Status: release > > > > Description: > > Parameter expansion within heredocs fails. > > > > The code below works with other shells aswell as bash 5.1 >

Re: Nested expansion in heredoc fails

2022-12-14 Thread wang yuhang
On 12/13/22 12:42 PM, wang yuhang wrote:> This modification has been changed when dealing with '$(', It seems > to have missed the right bracket. Maybe we should add this bracket. It seems that there is something wrong with this patch, It's true that my brain is not very good lat

Re: Nested expansion in heredoc fails

2022-12-14 Thread wang yuhang
Hello  In bash-5.2, There is one modification: fix to expand $'...' and $"..." in certain word expansions while expanding lines of here-document data This modification has been changed when dealing with '$(', It seems to have missed the right bracket. Maybe we should add this bracket. I hope

Re: Nested expansion in heredoc fails

2022-12-14 Thread Chet Ramey
On 12/13/22 12:42 PM, Norbert Lange wrote: Bash Version: 5.2 Patch Level: 2 Release Status: release Description: Parameter expansion within heredocs fails. The code below works with other shells aswell as bash 5.1 Thanks for the report. It's an off-by-one error that is specific to command su

Nested expansion in heredoc fails

2022-12-13 Thread Norbert Lange
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall uname output: Linux lano-work 6.0.0-5-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.0.10-2 (2022-12-01)