helpThe GNU Bourne-Again SHell - Support: sr #108904, Error in assignement of...


sr #108904: Error in assignement of BASH_SOURCE for static environemnt variables

Submitted by:  Arno-Can Uestuensoez <acue>
Submitted on:  Fri 09 Oct 2015 01:25:21 AM UTC  
Category:  None Priority:  5 - Normal
Severity:  4 - Important Status:  Done
Privacy:  Public Assigned to:  None
Open/Closed:  Open Operating System:  None

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Fri 13 Nov 2015 07:51:57 PM UTC, comment #2:

This is the root cause for both reports.

Chet Ramey <chet>
Project Administrator
Fri 09 Oct 2015 01:27:42 AM UTC, comment #1:

Sorrz for the typo of the title, this happened because functions internally are handled as environment variables:

sr #108904: Error in assignement of BASH_SOURCE for static environemnt functions

Arno-Can Uestuensoez <acue>
Fri 09 Oct 2015 01:25:21 AM UTC, original submission:

The assigment of the filename entry for a function, which is
'pinned' as environment extension fails when called from a new
independent script.

This is caused by multiple bugs, I am going to provide further
information including the required fix soon.
For additional information on a related issue refer to item:

sr #108903: Inconsistency of BASH_SOURCE/BASH_LINENO/FUNCNAME with 'pinned' functions

Even though similar, these items are actually idependent.

-> sr #108903: breaks the BASH_SOURCE completely once occur
-> this item: just breaks function calls - trace in the func-body

Arno-Can Uestuensoez

PS: The attached files from sr #108903 display this issue too

Arno-Can Uestuensoez <acue>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #35117:  README.txt added by acue (2KiB - text/plain)
file #35119:  static-fct-min-verbose.tar.gz added by acue (729B - application/gzip)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by chet (Posted a comment)
  • -email is unavailable- added by acue (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-11-13 chet StatusNone => Done
    2015-10-09 acue Attached File- => Added README.txt, #35117
        Attached File- => Added call-sequence-with-error.txt, #35118
        Attached File- => Added static-fct-min-verbose.tar.gz, #35119

    Back to the top

    Powered by Savane 3.3