Skip to content

invasy/bash-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bash Scripting Library

Prerequisites

  • Bash (GNU Bourne again shell), version >= 4.0
  • coreutils

Shell Parameters

  • $BASH_LIB — path to Bash library directory

Return Codes

  • 1 — current shell is not Bash.
  • 2 — Bash version is not supported (less than 4.0).
  • 3 — package coreutils is not installed.
  • 255 — Bash lib was not initialized.

Naming Convention

  • _<lib>_<name> — private variables.
  • _<lib>::<name> — private functions.
  • _<lib>::init — library initialization.

Links