oobash is an oo-style framework for bash 4 written in bash. It provides tools for rapid script development and huge libraries.
| Tags | bash Library Administration Development framework Unix Shell Linux osx cli |
|---|---|
| Licenses | MIT |
| Operating Systems | Unix/Linux UNIX-like OSs |
| Implementation | bash Unix Shell Shell utilities |
| Translations | English German Italian |
Recent releases


Release Notes: This release adds stepper and xtrace options in the script skeleton (Script.generator). It renames __fileLength to __size. It removes dependencies (wc, pwd, tr, and sort). Now the output of Class.generator is alphabetically sorted. code/help/man is alphabetically sorted. Fixes and small improvements.


Release Notes: This release adds Math.signum, Math.rint, and Math.round, and adds fixes and small improvements.


Release Notes: This release adds to String String.fromCharCode, adds to Private __getAttributeFromObjectByName, __charCode, __getObjectPointer, __isObjectnameValid, and __rstripDoubleZeros, adds to File setuid, setgid, setStickyBit, hasUidBit, and hasGidBit, renames __posixFilePermissionsConverter to __posixFilePermissionToOctal, __terminalSupportscolors to __terminalSupportsColors, __stackOrHelp to __handleErrorMessage, __visible to __visibilityCheck, __checkForKeywords to __keywordCheck, and __destructor to __destruct, removes the __stack function, supports Cyrillic characters, and adds fixes and small improvements.


Release Notes: This release adds to File (lastChanged, lastAccessed, setLastAccessed, touch, isOlderThan, isNewerThan) and adds private functions (__isatty, __terminalSupportscolors, __slashCheck, __getLoggingTimestamp, __getFreeFD, __setPS4), makes all generators try to use the optional variables __AUTHOR__, __COMPANY__, and __EMAIL__, and adds fixes and small improvements.


Release Notes: Added to String: charCodeAt, containsOnly, containsNone, and indexOfDifference. Added to File: deleteRecursively. Added private functions: __stack, __isXTRACEFDAvailable, and __getFileBase. A new script skeleton with the Script.generator function. Fixes and some other small changes.
Recent comments
03 Jan 2011 21:30
Hello again chadwickboggs,
...
./oobash: line 187: declare: -A: invalid option
...
looks to me, like a too old bash.
If you do a
echo $BASH_VERSINFO
the result has to be: "4".
If it is 3 or less - i am sorry - then you can't use the code.
bye
Andreas
03 Jan 2011 21:16
Hello chadwickboggs,
thanks for the feedback. Please do not execute the file, but source it ( try: source oobash-0.34.source )
Then try:
String a teststring
a.length
Hope this helps.
Bye
Andreas
03 Jan 2011 18:36
$ ./oobash
Sorry, you need a bash version 4...
./oobash: line 183: return: can only `return' from a function or sourced script
./oobash: line 187: declare: -A: invalid option
declare: usage: declare [-afFirtx] [-p] [name[=value] ...]
./oobash: line 4351: syntax error near unexpected token `&'
./oobash: line 4351: ` ";;&'
03 Jan 2011 18:34
Currently oobash does not work on OS-X (Snow Leopard 64-bit) for me. If this is true for others, can it be fixed to? Thank you.
23 Dec 2010 14:11
:)
A simple social network with some project management features.