cleanup
Cleanup at exit
This function discards every allocated resources (tmp files,...)
Arguments
None
Returns
Always 0Displays
nothingexec_url
Retrieves executable data through an URL and executes it.
Supports any URL accepted by wget.
By default, the 'wget' command is used. If the $WGET environment variable is set, it is used instead (use, for instance, to specify a proxy or an alternate configuration file).
Arguments
$1 | Url |
Returns
the return code of the executed programDisplays
data displayed by the executed programfinish
Finish execution
This function discards every allocated resources (tmp files,...)
Arguments
$1 | Ooptional. Exit code. Default: 0 |
Returns
Never returns. Exits from program.Displays
nothingfunc_is_defined
Check if a shell function is defined
Arguments
$1 | Function name |
Returns
0 if function is defined, 1 if notDisplays
Nothinghelp
Display help
Arguments
None
Returns
No returnDisplays
Help messageloaded
Checks if the library is already loaded
Of course, if it can run, the library is loaded. So, it always returns 0.
Allows to support the 'official' way to load sysfunc :
sf_loaded 2>/dev/null || . sysfunc.sh
Arguments
None
Returns
Always 0Displays
Nothingtxt_cleanup
Uncomment and cleanup input stream
- changes tabs to spaces, - changes multiple blanks to one space, - removes leading and trailing blanks, - removes comments (starting with '#'), - removes blank lines
Arguments
$1 | Optional. File to read from. If not set, read from stdin |
Returns
Always 0Displays
the cleaned streamversion
Displays library version
Arguments
None