bug-bash
[Top][All Lists]
Advanced

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

Re: Parameter expansion isn't performed first if it's in a parameter exp


From: Chet Ramey
Subject: Re: Parameter expansion isn't performed first if it's in a parameter expansion
Date: Sat, 26 Nov 2016 12:45:52 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.5.0

On 11/26/16 8:52 AM, xuzhen wrote:

> Bash Version: 4.4
> Patch Level: 5
> Release Status: release
> 
> Description:
> The manpage said that brace expansion is performed before any other
> expansions. But I found it's not if it's in a parameter expansion.

You're right.  Bash doesn't perform brace expansion inside a parameter
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://cnswww.cns.cwru.edu/~chet/



reply via email to

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