Re: command substitution bug

2016-12-03 Thread Chet Ramey
On 12/2/16 6:23 AM, parasite parasite wrote: > GNU bash, version 4.3.46(1)-release (x86_64-unknown-linux-gnu) > GCC: (GNU) 6.1.1 > On archlinux 4.4.27-1-lts > > Hello, today i tried something simple but it leads to what seems to be a bug. > > $ var="$(for ((i=0;i<$#;i++));do echo line;done)" > le

command substitution bug

2016-12-02 Thread parasite parasite
GNU bash, version 4.3.46(1)-release (x86_64-unknown-linux-gnu) GCC: (GNU) 6.1.1 On archlinux 4.4.27-1-lts Hello, today i tried something simple but it leads to what seems to be a bug. $ var="$(for ((i=0;i<$#;i++));do echo line;done)" leads to: "unexpected EOF while looking for matching `)' I thi