[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Pathname expansion not performed in Here Documents
From: |
Davide Baldini |
Subject: |
Pathname expansion not performed in Here Documents |
Date: |
Mon, 27 Feb 2012 04:03:34 +0100 |
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:
--
- Pathname expansion not performed in Here Documents,
Davide Baldini <=
- Re: Pathname expansion not performed in Here Documents, Dan Douglas, 2012/02/26
- Re: Pathname expansion not performed in Here Documents, DJ Mills, 2012/02/27
- Re: Pathname expansion not performed in Here Documents, Davide Baldini, 2012/02/27
- Re: Pathname expansion not performed in Here Documents, Pierre Gaston, 2012/02/27
- Re: Pathname expansion not performed in Here Documents, Steven W. Orr, 2012/02/27
- Re: Pathname expansion not performed in Here Documents, Pierre Gaston, 2012/02/27
- Re: Pathname expansion not performed in Here Documents, Roman Rakus, 2012/02/27
- Re: Pathname expansion not performed in Here Documents, Davide Baldini, 2012/02/27
- Re: Pathname expansion not performed in Here Documents, Chet Ramey, 2012/02/27
- Re: Pathname expansion not performed in Here Documents, Dan Douglas, 2012/02/27