Re: [bash-bug] parsing error with heredoc and command substitution
From:
Stephane CHAZELAS
Subject:
Re: [bash-bug] parsing error with heredoc and command substitution
Date:
Wed, 08 Dec 2010 15:49:38 -0000
User-agent:
slrn/pre1.0.0-16 (Linux)
2010-07-15, 10:21(+02), Dr. Werner Fink:
[...]
>> a=$(/bin/cat << EOF | wc -l
>> a
>> b
>> EOF
>> )
[...]
> Hmmm ... I would expect that
>
> a=$((/bin/cat|wc -l) <<EOF
> a
> b
> EOF
> )
>
> is more correct.
[...]
Both are correct, but different (though the same functionaly in
this case).
It's definitely a bug, and quite a weird one.
--
Stephane
>
[Prev in Thread]
Current Thread
[Next in Thread]
Re: [bash-bug] parsing error with heredoc and command substitution,
Stephane CHAZELAS<=