Unix and Linux Discussions Tagged with ca |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
2 |
34,346 |
What is on Your Mind? |
|
|
|
5 |
8,151 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
15,401 |
AIX |
|
|
|
1 |
134,782 |
Forum Support Area for Unregistered Users & Account Problems |
|
|
|
16 |
26,744 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
17,762 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
4,026 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
5,211 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
4,792 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
4,855 |
UNIX for Beginners Questions & Answers |
|
|
|
9 |
5,384 |
UNIX for Beginners Questions & Answers |
|
|
|
7 |
10,459 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
6,048 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
16,073 |
UNIX for Advanced & Expert Users |
|
|
|
5 |
15,202 |
OS X (Apple) |
|
|
|
1 |
17,102 |
Forum Support Area for Unregistered Users & Account Problems |
|
|
|
1 |
6,028 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
16,348 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
12,930 |
UNIX for Advanced & Expert Users |
|
|
|
5 |
3,474 |
UNIX for Beginners Questions & Answers |
|
|
|
8 |
3,621 |
UNIX for Beginners Questions & Answers |
|
|
|
11 |
14,612 |
Post Here to Contact Site Administrators and Moderators |
|
|
|
2 |
6,859 |
Solaris |
|
|
|
33 |
36,642 |
Solaris |
|
|
|
3 |
14,822 |
Forum Support Area for Unregistered Users & Account Problems |
|
|
|
5 |
3,925 |
Programming |
|
|
|
1 |
8,269 |
Red Hat |
|
|
|
4 |
14,061 |
Shell Programming and Scripting |
|
|
|
4 |
5,937 |
AIX |
|
|
|
3 |
13,301 |
Debian |
|
|
|
2 |
4,737 |
HP-UX |
|
|
|
0 |
2,674 |
Software Releases - RSS News |
|
|
|
0 |
2,368 |
Software Releases - RSS News |
|
|
|
0 |
2,452 |
Software Releases - RSS News |
|
|
|
0 |
2,184 |
Software Releases - RSS News |
|
|
|
2 |
7,458 |
SuSE |
|
|
|
0 |
2,425 |
Software Releases - RSS News |
|
|
|
0 |
2,189 |
Software Releases - RSS News |
|
|
|
2 |
3,984 |
Programming |
|
|
|
0 |
2,280 |
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