I have a "library" file (containing general functions) I source in many different bash scripts. What's the correct filesystem location to system-wide "install" this file in?
/usr/lib/myBashlib/file.bash ?
I don't want to place it below /opt, but properly install it by making a package for my distro.
EDIT: My distro specifies, that "Packages should never be installed to /usr/local/" (EDIT2:) and also "Avoid using /usr/libexec/ for anything".
EDIT3: I wonder, if the best way would be, to just define an environment variable (e.g. MYBASHLIBPATH) ... This would at least allow users of scripts that include this lib to install it locally instead of globally and then just set this variable to the path they installed it in ...