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

Ex:
------------------------------------------
#! /bin/bash
LINENO=-2
echo "Line = $LINENO"
echo "Line = $LINENO"
echo "Line = $LINENO"
echo "Line = $LINENO"
-------------------------------------------

*result in bash 2.05b:
Line = -1
Line = 0
Line = 1
Line = 2

*result in bash 3.0:\
Line = 3
Line = 4
Line = 5
Line = 6

Is this a bug ?!! and how to change LINENO value in bash3.0
Thanks for help

--
Ahmed S. Darwish


_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash

Reply via email to