Configuration Information [Automatically generated, do not change]:
Machine: i486
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i486'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL
-DHAVE_CONFIG_H -I. -I../bash -I../bash/include -I../bash/lib -g -O2 -Wall
uname output: Linux debianBunker 2.6.26-2-686 #1 SMP Wed Sep 21 04:35:47 UTC
2011 i686 GNU/Linux
Machine Type: i486-pc-linux-gnu
Bash Version: 4.1
Patch Level: 5
Release Status: release
Description:
In this example 'pathname expansion' doesn't occur during the
redirection of a 'here document':
$ ls
my_file
$ v="my_*"
$ cat <<EOF
$v
"$v"
EOF
my_*
"my_*"
while the expansion alone works:
$ echo $v
my_file
Is this expected? Standing at the debian's man bash, variables inside
'here document' are supposed to expand with no special exceptions
and undergo word splitting and pathname expansion.
Repeat-By:
--
Fix:
--