helpThe GNU Bourne-Again SHell - Support: sr #108804, Support for FPATH

 
 

sr #108804: Support for FPATH

Submitted by:  BOM <bom>
Submitted on:  Thu 23 Apr 2015 03:23:24 AM UTC  
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Operating System:  GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Thu 23 Apr 2015 03:23:24 AM UTC, original submission:

Request for Enhancement: FPATH support

We are using the module environment (http://modules.sourceforge.net/) to manage different versions of applications for a rather large user base (100's of users). One particular issue is that a wide variation of shells can be used, e.g. a user having ksh as login shell, but running a sh script in a batch job, ... This requires a rather complex setup of environment variables (ENV, BASH_ENV), modifications of startup scripts etc.

Certain combinations relied on functions being passed to bash via the environment, particularly in the case of scripts launched with /bin/sh, where bash starts in a traditional "sh" mode that does not read any startup files. Before the shell-shock bug was fixed, it was possible for ksh or csh login shells to define environment variables containing functions for bash, but this is no longer possible because the names of the relevant environment variables have changed to forms such as BASH_FUNC_myfun(), where the trailing brackets are not valid in shell variable names.

Ksh supports the FPATH environment variable, which allows the shell to find shell functions defined in scripts. This feature is very useful in the described environment, since significantly simplifies the environment that needs to be handled.

Could bash, including bash running in posic mode as sh support the FPATH environment the way kshell does?

BOM <bom>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bom (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.

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.3