|
From: | Bernd Eggink |
Subject: | Re: [bash-bug] parsing error with heredoc and command substitution |
Date: | Thu, 15 Jul 2010 11:12:06 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.4) Gecko/20100608 Thunderbird/3.1 |
Am 15.07.2010 10:35, schrieb Andreas Schwab:
"Dr. Werner Fink"<werner@suse.de> writes:a=$((/bin/cat|wc -l)<<EOF a b EOF )Useless subshell. a=$({ /bin/cat | wc -l; }<<EOF a b EOF )
...and useless cat: a=$(wc -l <<EOF a b EOF )Nevertheless, IMHO the OP's version should work. It works in ksh, for example.
Bernd -- Bernd Eggink http://sudrala.de
[Prev in Thread] | Current Thread | [Next in Thread] |