Skip to content
#

bash-script

bash logo

Bash (Bourne Again Shell) is a shell and command language interpreter for the GNU operating system. It is meant to be an improved version of Bourne Shell.

Here are 3,286 public repositories matching this topic...

bbros-dev
bbros-dev commented Mar 29, 2020

Taking on board the feedback in PR #8, I'm feeding back some changes I've found useful.

For consideration:

# DESC: Variable defaults
# ARGS: None.
# OUTS: Variables with default values set.
function defaults() {
  verbose=false no_colour=false cron=false outfile=-
}

...

function parse_params() {
....
  local param
  defaults
  # now enjoy the options in order and nice

Created by Brian Fox

Released June 8, 1989

Repository
gitGNU/gnu_bash
Website
www.gnu.org/software/bash
Wikipedia
Wikipedia

Related Topics

shell
You can’t perform that action at this time.