libbash.sh 1.8.0
What's new
- New function:
lb_split()
to split a string into array - New function:
lb_join()
to join array into string
Changes
lb_command_exists()
now returns only error code 1 and accepts multiple argumentslb_function_exists()
accepts multiple argumentslb_user_exists()
now returns only error code 1 and accepts multiple arguments- More strict results in
lb_is_number()
,lb_is_integer()
andlb_is_boolean()
: all arguments are verified lb_array_contains()
now returns 2 if no array is provided- Major code refactoring to improve local variables use and readability
Debian/Ubuntu package
Download the debian package in the assets section above to use libbash.sh everywhere!
Just run source /usr/lib/libbash/libbash.sh
from a terminal or a script and you will have access to all the libbash functions and variables.
You can also check the package with the SHA-256 checksum.
Documentation
Read documentation here and check the Wiki for tips and tricks on Bash
Help us
Please help us to improve libbash.sh by testing and report bugs or ask for new features here.
If you like libbash.sh, you can give a star on Github to show your support to the project.