Earlier quoted context omitted.
Yeah. I will probably join their ranks at some point. Bash maintainer actually implemented the library feature I suggested and it's already dramatically cut down the amount of unsightly bash code I need to keep around and maintain. I'm getting pretty tired of coping with old stuff just because it's there though. Went through this phase with GNU make too.
Sorry, which library feature?
Nevertheless, a version of the feature landed in bash 5.3.
source -p "${HOME}/.local/lib/bash" file
You can use that to implement the library import function yourself. import() {
local f
for f in "$@"; do
[[ -v loaded[$f] ]] && continue
loaded[$f]=1
source -p "${HOME}/.local/lib/bash" "${f}"
done
}
import arguments terminal