help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] Bash Trap: How to Get Line Number of a Subprocess with N


From: Chet Ramey
Subject: Re: [Help-bash] Bash Trap: How to Get Line Number of a Subprocess with Non-Zero Status
Date: Mon, 2 Jan 2017 13:09:32 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.6.0

On 1/2/17 4:59 AM, Steve Amerige wrote:

> From an end-user's perspective, it is unexpected that the LINENO has the
> value of the
> beginning of the function instead of the line at which the ERR was caught
> by trap.

Sure, it's missing functionality.  Eduardo's patch was pretty much spot-on.
It will be fixed in the next version of bash, at least.

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



reply via email to

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