[Top][All Lists]

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

Re: 3-lines long segfault

From: Chet Ramey
Subject: Re: 3-lines long segfault
Date: Wed, 22 Jul 2009 23:18:00 -0400
User-agent: Thunderbird (Macintosh/20090605)

Marc Herbert wrote:

>  - removing the "-t" option from "read" dodges the immediate crash, but
>    not the memory corruption? So bash might still crash later?
>  - in other words, triggering a trap from a command expansion will
>    always corrupt memory? (I mean: without your recent fix)

It is the specific combination of the assignment statement whose rhs
contains a command substitution which causes a trap to be executed
by the parent shell.

``The lyf so short, the craft so long to lerne.'' - Chaucer

Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/

reply via email to

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