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 in your original bug description that BASH_SOURCE should show the filename from where the function is called so that it is consistent with BASH_LINENO. now about this bug: i am sure that the actual behaviour of BASH_SOURCE will NEVER be changed, because that would break many many scripts out there. so i suggest that we keep this bug invalid and you open a new bug, referring this bug and requesting the rewording for the appropriate sections in the bash manual. note: there is a typo in your text in the section for BASH_LINENO. the second "where" should be "were" ** Attachment added: "demonstration_of_bash_source_and_lineno.txt" http://launchpadlibrarian.net/49662585/demonstration_of_bash_source_and_lineno.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 mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs