help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Good placement of bash export functions


From: uzibalqa
Subject: Good placement of bash export functions
Date: Tue, 11 Oct 2022 17:51:57 +0000


I have a number of bash script files that perform a specific tasks. After 
defining the appropriate set of functions, I included an additional utility 
function that allows one to export the function names. I have several files 
like this that end with an export function. There is also the possibility to 
have a separate file that performs the exports.

What would be easier to use, an export function in every file, or having a 
separate file containing all the necessary export functions for the entire 
package?

lincom-export ()

 {

  export -f lincom-usage

  export -f lincom-details

  export -f lincom

 }
  





reply via email to

[Prev in Thread] Current Thread [Next in Thread]