[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Error message garbage when parameter expansion used inside (()) and
From: |
Chet Ramey |
Subject: |
Re: Error message garbage when parameter expansion used inside (()) and variable unset |
Date: |
Wed, 4 Apr 2018 10:16:50 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
On 4/3/18 7:07 PM, PRussell wrote:
> Hi,
>
> The error seems to be localized to the expansion of PS4 when "set -x" is
> active.
>
> Please see sample script below.
It's not quite that, though the expansion below does demonstrate what I
think is the problem.
If I am right about the cause, the problem (use-afer-free when printing an
error messasge) was fixed back in 11/2016 as a result of a series of
fuzzing scripts run through address sanitizer.
Chet
--
``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/