bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Document that here strings don't support brace expansion.


From: Chet Ramey
Subject: Re: Document that here strings don't support brace expansion.
Date: Mon, 13 Mar 2023 18:06:53 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.8.0

On 3/11/23 3:39 AM, Alex Bochannek wrote:
Bash Version: 5.2
Patch Level: 15
Release Status: release

Description:

The documentation for here strings says:

"The WORD undergoes tilde expansion, parameter and variable expansion,
command substitution, arithmetic expansion, and quote removal.  Filename
expansion and word splitting are not performed."

It is missing brace expansion, which is not supported:

I wouldn't say it's missing, since it's not listed as one of the expansions
that here-strings undergo. The filename expansion and word splitting are
called out because people asked about them. To this point, no one has asked
about brace expansion.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/




reply via email to

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