LDBASH(1)
π LDBASH(1) π
the dynamic loader for libbash(7) libraries, but make it cute β¨
this one lives in the LOCAL manual section, bestie β say hi to ldbash π«Ά
β¨ NAME β¨
ldbash β dynamic loader for libbash(7) libraries. iconic behavior, no cap π
πΈ SYNOPSIS πΈ
ldbash [-h | --help]
ldbash [-l | --list]
ldbash [-L | --load lib,[lib] ...]
ldbash [-U | --unload lib,[lib] ...]
ldbash [-e | --externlist lib,[lib] ...]
ldbash [--externlist-all]
ldbash [--i | --internlista lib,[lib] ...]
ldbash [--internlist-all]
π¦ DESCRIPTION π¦
okay so. ldbash is your bestie for messing with libbash(7) libraries. its whole main-character job is loading a specific library. but it also does the side quests: it can print the list of available libraries, list the functions each library exports, unload functions, etc. multi-talented fr fr π
and listen β when you use --load and --unload, the output is meant to be passed to the bash eval command. that's the whole point. it's giving "here's your homework, go run it" π
π Options π
-h|--helpβ prints the options summary. your little cheat sheet, bestie π-l|--listβ shows you the list of available libraries. and the library names it prints? you can pass those as parameters to otherldbashinvocations. so the workflow is literally: runldbash --listto see what's available, then load it. girlboss pipeline β¨-L|--load lib,[lib] ...β loads the libraries you name, i.e. it prints the string that should be passed to theevalcommand. usually that string contains varioussourcecommands.
libraries that the given libraries depend on are also loaded. π
but heads up: libraries only load if their dependencies are satisfied. dependencies get resolved using the ldbash.cache file, which is created by ldbashconfig(8). no cache, no vibes π«Ά
-U|--unload lib,[lib] ...β unloads the libraries you name, but not their dependencies. π
the output should be passed to the eval command, in the same manner as with --load. π
-e|--externlist lib,[lib] ...β lists all the symbols that are exported by the given libraries. symbols are usually functions that the given libraries implement. show me what you're serving π--externlist-allβ lists all exported symbols of all available libraries. symbols are usually functions that the library implements. the whole menu, bestie π-i|--internlist lib,[lib] ...β lists all internal symbols (i.e. global variables/functions) of the given libraries. this one is mostly for developers who want to develop a library of their own and want to be sure they don't override any already defined symbol. dev girlies, this is for you π§--internlist-allβ lists all internal symbols of all available libraries. this is intended mostly for developers who want to develop a library of their own, and want to be sure that they don't override any already defined symbol. π
π FILES π
/etc/ldbash.cacheβ the cache file that contains info about library dependencies and the list of exported symbols. seeldbashconfig((8))for further details. it's the receipts folder, basically π
π BUGS π
the script can't load libraries if their file name starts with -. so if someone uses file names that start with a -, he/she deserves it! π not us being dramatic, that's literally in the manual.
ok but fr, don't name your library -library. the script will simply not have a good time and neither will you. π
π AUTHORS π
- Hai Zaar
<haizaar@gmail.com> - Gil Ran
<gil@ran4.net>
shoutout to the legends who built this π
π SEE ALSO π
go read those too, bestie, iykyk β¨
and that's the whole page, periodt π this one's from the Linux source, and the date on it is UNDATED (yes really, undated, it's giving mysterious π¦), filed under LDBASH(1). mwah, go load some libraries π«Άπβ¨
π¦ where this page comes from
- debian bookworm: libbash 0.9.11-3 Β· GPL-3.0-only
- debian trixie: libbash 0.9.11-3 Β· GPL-3.0-only
- ubuntu jammy: libbash 0.9.11-3 Β· GPL-3.0-only
- ubuntu noble: libbash 0.9.11-3 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms