[Bug 318678] Re: BASH_SOURCE is not correct

2010-06-09 Thread Heiko Scheit
This is the new bug report https://bugs.launchpad.net/ubuntu/+source/bash/+bug/591677 -- BASH_SOURCE is not correct https://bugs.launchpad.net/bugs/318678 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list

[Bug 318678] Re: BASH_SOURCE is not correct

2010-06-09 Thread Heiko Scheit
Ok. I will do that then. Thanks for catching the typo. -- BASH_SOURCE is not correct https://bugs.launchpad.net/bugs/318678 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https

[Bug 318678] Re: BASH_SOURCE is not correct

2010-06-04 Thread Lesmana Zimmer
yes you are absolutely right. now that i read the text for BASH_LINENO i see that the text for BASH_SOURCE (and BASH_LINENO) is quite vague. thank you for your effort to describe this so clearly. i agree with you that the wording in the manual should be updated. i now also agree with your point i

[Bug 318678] Re: BASH_SOURCE is not correct

2010-06-04 Thread Heiko Scheit
Lesmana Zimmer wrote: > the bash manual says that BASH_SOURCE shows filename where a function is > defined > (and not the filename from where the function is called). No, this is not true. Nowhere it says that BASH_SOURCE holds the filename where FUNCNAME is _defined_. In fact, the documentat

[Bug 318678] Re: BASH_SOURCE is not correct

2010-06-03 Thread Lesmana Zimmer
the bash manual says that BASH_SOURCE shows filename where a function is defined (and not the filename from where the function is called). http://www.gnu.org/software/bash/manual/html_node/Bash-Variables.html #index-BASH_005fSOURCE-174 as Barre said in comment #2 you can check the filename from w

[Bug 318678] Re: BASH_SOURCE is not correct

2009-10-20 Thread Barre
BASH_SOURCE[1] should contain the name of the calling source file. BASH_SOURCE (eg: $BASH_SOURCE[0]) contains the current source file, and that's the file containing the function. I could be wrong though, but her's what I did: file: tst -- #/bin/bash . $(dirname $0)/tst.1 . $(dirname $0)

[Bug 318678] Re: BASH_SOURCE is not correct

2009-01-19 Thread Heiko Scheit
** Attachment added: "Dependencies.txt" http://launchpadlibrarian.net/21350658/Dependencies.txt -- BASH_SOURCE is not correct https://bugs.launchpad.net/bugs/318678 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mail