[Top][All Lists]

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

Re: Nested expansion in heredoc fails

From: Chet Ramey
Subject: Re: Nested expansion in heredoc fails
Date: Wed, 14 Dec 2022 10:09:08 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.0

On 12/13/22 12:42 PM, Norbert Lange wrote:

Bash Version: 5.2
Patch Level: 2
Release Status: release

Parameter expansion within heredocs fails.

The code below works with other shells aswell as bash 5.1

Thanks for the report. It's an off-by-one error that is specific to command
substitution within parameter expansion in a here-document line. Here's a


``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/

Attachment: heredoc-paramexp-comsub
Description: Text document

reply via email to

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