[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with overridden functions and BASH_SOURCE Array
From: |
dethrophes |
Subject: |
Re: Problem with overridden functions and BASH_SOURCE Array |
Date: |
Mon, 19 Dec 2011 06:22:38 -0800 (PST) |
> The difference between main1 and main2 is the fact that bash always reads
> an entire command before executing any of it, and the if statement is a
> compound command.
Ok that insight gives me a way to work around the problem thanks.
> I will have to see if the function definition can do a better job of
> carrying around the source file and line information, but that's a pretty
> significant change.
Actually from what I have seen it already seems to work for BASH_LINENO. Its
just the source file that goes weird.
--
View this message in context:
http://old.nabble.com/Problem-with-overridden-functions-and-BASH_SOURCE-Array-tp32975117p33003158.html
Sent from the Gnu - Bash mailing list archive at Nabble.com.