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

 
 

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

Submitter:  Arno-Can Uestuensoez <acue>
Submitted:  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
* Mandatory Fields

Add a New Comment Rich Markup
   

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

This is the root cause for both reports.

Chet Ramey <chet>
Group 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:
   
   
Comment:
   

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    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.13-f8d8.
    Corresponding source code