[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Pathname expansion not performed in Here Documents
From: |
DJ Mills |
Subject: |
Re: Pathname expansion not performed in Here Documents |
Date: |
Sun, 26 Feb 2012 23:04:02 -0500 |
On Sun, Feb 26, 2012 at 10:11 PM, Dan Douglas <ormaaj@gmail.com> wrote:
> On Monday, February 27, 2012 04:03:34 AM Davide Baldini wrote:
>> 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.
>
> "If word is unquoted, all lines of the here-document are subjected to
> parameter expansion, command substitution, and arithmetic expansion."
>
> No pathname expansion.
> --
> Dan Douglas
>
Think of regular here-doc (with an unquoted word) as being treated the
same way as a double-quoted string
- Pathname expansion not performed in Here Documents, Davide Baldini, 2012/02/26
- Re: Pathname expansion not performed in Here Documents, Dan Douglas, 2012/02/26
- Re: Pathname expansion not performed in Here Documents,
DJ Mills <=
- 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