> Bash Version: 4.1
> Patch Level: 5
> Release Status: release
>
> Description:
>
> The following script used to work in bash 3.2 but does not work with
> bash 4.x (I tried 4.0, 4.1.5, and 4.1.7)
>
> --
> #!/bin/bash
>
> a=$(/bin/cat << EOF | wc -l
> a
> b
> EOF
> )
> -
>
> /tmp/bug.sh
Am 15.07.2010 10:35, schrieb Andreas Schwab:
"Dr. Werner Fink" writes:
a=$((/bin/cat|wc -l)<
Useless subshell.
a=$({ /bin/cat | wc -l; }<
...and useless cat:
a=$(wc -l
"Dr. Werner Fink" writes:
> a=$((/bin/cat|wc -l) < a
> b
> EOF
> )
Useless subshell.
a=$({ /bin/cat | wc -l; } <
On Tue, Jul 13, 2010 at 01:51:31PM -0400, Alex Khesin wrote:
> Configuration Information:
> Machine: x86_64
> OS: linux-gnu
> Compiler: gcc
> Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64'
> -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu'
> -DCONF_VENDOR='pc' -DLOCAL
Configuration Information:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash'
-DSHELL -DHAVE_CONFIG_H -I. -I