Unix and Linux Discussions Tagged with cp |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
7 |
11,434 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
4,208 |
UNIX for Beginners Questions & Answers |
|
|
|
7 |
6,024 |
Shell Programming and Scripting |
|
|
|
4 |
3,585 |
UNIX for Advanced & Expert Users |
|
|
|
6 |
1,744 |
UNIX for Beginners Questions & Answers |
|
|
|
7 |
8,756 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
7,232 |
Shell Programming and Scripting |
|
|
|
10 |
3,456 |
Programming |
|
|
|
10 |
3,927 |
Shell Programming and Scripting |
|
|
|
1 |
6,989 |
UNIX for Dummies Questions & Answers |
|
|
|
10 |
4,101 |
UNIX for Dummies Questions & Answers |
|
|
|
11 |
4,851 |
Red Hat |
|
|
|
4 |
9,459 |
Shell Programming and Scripting |
|
|
|
10 |
5,775 |
Shell Programming and Scripting |
|
|
|
7 |
15,559 |
Shell Programming and Scripting |
|
|
|
8 |
10,691 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
2,182 |
Shell Programming and Scripting |
|
|
|
4 |
3,354 |
Shell Programming and Scripting |
|
|
|
26 |
8,508 |
Shell Programming and Scripting |
|
|
|
1 |
2,305 |
Shell Programming and Scripting |
|
|
|
4 |
2,941 |
Shell Programming and Scripting |
|
|
|
7 |
24,843 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,609 |
Shell Programming and Scripting |
|
|
|
4 |
4,915 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
5,304 |
Shell Programming and Scripting |
|
|
|
2 |
7,632 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
5,990 |
Shell Programming and Scripting |
|
|
|
1 |
14,072 |
Shell Programming and Scripting |
|
|
|
2 |
11,123 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
3,594 |
UNIX for Dummies Questions & Answers |
|
|
|
9 |
8,913 |
Shell Programming and Scripting |
|
|
|
3 |
4,174 |
Shell Programming and Scripting |
|
|
|
4 |
10,613 |
Shell Programming and Scripting |
|
|
|
3 |
32,464 |
AIX |
|
|
|
3 |
31,194 |
Shell Programming and Scripting |
|
|
|
3 |
13,297 |
Shell Programming and Scripting |
|
|
|
1 |
7,794 |
Shell Programming and Scripting |
|
|
|
6 |
26,549 |
Programming |
|
|
|
1 |
22,033 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
4,761 |
Solaris |
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