[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: $LINENO can't be modified in bash 3.0, while this can be done in bas
From: |
Chet Ramey |
Subject: |
Re: $LINENO can't be modified in bash 3.0, while this can be done in bash 2.05b |
Date: |
Tue, 08 Nov 2005 12:14:17 -0500 |
User-agent: |
Mozilla Thunderbird 1.0.7 (Macintosh/20050923) |
Ahmed Darwish wrote:
> I've noticed that the $LINENO can't be modified in bash 3.0. I made a
> script (bash debugger) which modify LINENO to a specific value before
> using it, it worked in bash 2.05b. but in bash 3.0, even if i've
> changed it's value, it counts from "one" like nothing happened
Bash-3.0 is much more rigorous about $LINENO accurately reflecting the
line number in the script. It's not a bug.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
Live Strong.
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/