Unix and Linux Discussions Tagged with 10 |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
6 |
29,904 |
Solaris |
|
|
|
5 |
2,330 |
Shell Programming and Scripting |
|
|
|
3 |
5,823 |
Solaris |
|
|
|
2 |
3,169 |
Solaris |
|
|
|
4 |
3,426 |
Solaris |
|
|
|
8 |
13,391 |
Ubuntu |
|
|
|
0 |
2,021 |
Software Releases - RSS News |
|
|
|
0 |
1,971 |
Software Releases - RSS News |
|
|
|
0 |
2,675 |
Software Releases - RSS News |
|
|
|
0 |
2,094 |
Software Releases - RSS News |
|
|
|
0 |
2,716 |
Software Releases - RSS News |
|
|
|
0 |
2,271 |
Software Releases - RSS News |
|
|
|
0 |
2,123 |
Software Releases - RSS News |
|
|
|
0 |
2,238 |
Software Releases - RSS News |
|
|
|
0 |
2,080 |
Security Advisories (RSS) |
|
|
|
0 |
2,129 |
Software Releases - RSS News |
|
|
|
0 |
2,219 |
Software Releases - RSS News |
|
|
|
0 |
1,861 |
Software Releases - RSS News |
|
|
|
0 |
3,572 |
Cartoons for Geeks |
|
|
|
0 |
1,819 |
Software Releases - RSS News |
|
|
|
0 |
2,021 |
Software Releases - RSS News |
|
|
|
0 |
1,741 |
Software Releases - RSS News |
|
|
|
0 |
1,840 |
Software Releases - RSS News |
|
|
|
0 |
1,871 |
Software Releases - RSS News |
|
|
|
0 |
1,832 |
Software Releases - RSS News |
|
|
|
0 |
1,696 |
Software Releases - RSS News |
|
|
|
0 |
1,809 |
Software Releases - RSS News |
|
|
|
0 |
1,762 |
Software Releases - RSS News |
|
|
|
0 |
2,137 |
Software Releases - RSS News |
|
|
|
0 |
1,778 |
Software Releases - RSS News |
|
|
|
0 |
1,899 |
Software Releases - RSS News |
|
|
|
0 |
2,177 |
Software Releases - RSS News |
|
|
|
0 |
1,609 |
Software Releases - RSS News |
|
|
|
0 |
1,708 |
Software Releases - RSS News |
|
|
|
0 |
2,138 |
Software Releases - RSS News |
|
|
|
1 |
3,605 |
Solaris |
|
|
|
0 |
2,151 |
Software Releases - RSS News |
|
|
|
0 |
1,918 |
Software Releases - RSS News |
|
|
|
0 |
1,913 |
Software Releases - RSS News |
|
|
|
0 |
2,021 |
Software Releases - RSS News |
LIBBASH(7) libbash Manual LIBBASH(7)
NAME
libbash -- A bash shared libraries package.
DESCRIPTION
libbash is a package that enables bash dynamic-like shared libraries. Actually its a tool for managing bash scripts whose functions you may
want to load and use in scripts of your own.
It contains a 'dynamic loader' for the shared libraries ( ldbash(1)), a configuration tool (ldbashconfig(8)), and some libraries.
Using ldbash(1) you are able to load loadable bash libraries, such as getopts(1) and hashstash(1). A bash shared library that can be loaded
using
ldbash(1) must answer 4 requirments:
1. It must be installed in $LIBBASH_PREFIX/lib/bash (default is /usr/lib/bash).
2. It must contain a line that begins with '#EXPORT='. That line will contain (after the '=') a list of functions that the library
exports. I.e. all the function that will be usable after loading that library will be listed in that line.
3. It must contain a line that begins with '#REQUIRE='. That line will contain (after the '=') a list of bash libraries that are
required for our library. I.e. every bash library that is in use in our bash library must be listed there.
4. The library must be listed (For more information, see ldbashconfig(8)).
Basic guidelines for writing library of your own:
1. Be aware, that your library will be actually sourced. So, basically, it should contain (i.e define) only functions.
2. Try to declare all variables intended for internal use as local.
3. Global variables and functions that are intended for internal use (i.e are not defined in '#EXPORT=') should begin with:
__<library_name>_
For example, internal function myfoosort of hashstash library should be named as
__hashstash_myfoosort
This helps to avoid conflicts in global name space when using libraries that come from different vendors.
4. See html manual for full version of this guide.
AUTHORS
Hai Zaar <haizaar@haizaar.com>
Gil Ran <ril@ran4.net>
SEE ALSO
ldbash(1), ldbashconfig(8), getopts(1), hashstash(1) colors(1) messages(1) urlcoding(1) locks(1)
Linux Epoch Linux