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

 
 

sr #108804: Support for FPATH

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

Add a New Comment Rich Markup
   

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 chet (Updated the item)
  • -email is unavailable- added by bom (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.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-01-17 chet StatusNone Wont Do

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code