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
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
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
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
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
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)
** 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