bug-bash
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]