Sha256: 0a871d740b90082a845e71797d8bc3eb80089c450f43d6e5aecb6ae44dd6d638

Contents?: true

Size: 1.18 KB

Versions: 536

Compression:

Stored size: 1.18 KB

Contents

#!/usr/bin/env bash
#------------------------------------------------------------------------------
# Bash+ - Modern Bash Programming
#
# Copyright (c) 2013-2016 Ingy döt Net
#------------------------------------------------------------------------------

set -e
shopt -s compat31&>/dev/null||:

#------------------------------------------------------------------------------
# Determine how `bash+` was called, and do the right thing:
#------------------------------------------------------------------------------
if [ "${BASH_SOURCE[0]}" != "$0" ]; then
  # 'bash+' is being sourced:
  [[ "${BASH_SOURCE[0]}" =~ /bin/bash\\+$ ]] || {
    echo "Invalid Bash+ path '${BASH_SOURCE[0]}'" 2> /dev/null
    exit 1
  }
  source "${BASH_SOURCE[0]%/bin/*}"/lib/bash+.bash || return $?
  bash+:import "$@"
  return $?
else
  if [ $# -eq 1 -a "$1" == --version ]; then
    echo 'bash+   version 0.0.7'
  else
  cat <<...

Greetings modern Bash programmer. Welcome to Bash+!

Bash+ is framework that makes Bash programming more like Ruby and Perl.

See: https://github.com/bpan-org/bashplus

If you got here trying to use bash+ in a program, you need to source it:

    source bash+

Happy Bash Hacking!

...
  fi
fi

Version data entries

536 entries across 268 versions & 4 rubygems

Version Path
eac_tools-0.86.5 sub/eac_git/vendor/git-subrepo/ext/bashplus/bin/bash+
eac_tools-0.86.5 sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/bashplus/bin/bash+
eac_tools-0.86.4 sub/eac_git/vendor/git-subrepo/ext/bashplus/bin/bash+
eac_tools-0.86.4 sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/bashplus/bin/bash+
eac_tools-0.86.3 sub/eac_git/vendor/git-subrepo/ext/bashplus/bin/bash+
eac_tools-0.86.3 sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/bashplus/bin/bash+
eac_git-0.16.0 vendor/git-subrepo/ext/test-more-bash/ext/bashplus/bin/bash+
eac_git-0.16.0 vendor/git-subrepo/ext/bashplus/bin/bash+
eac_tools-0.86.2 sub/eac_git/vendor/git-subrepo/ext/bashplus/bin/bash+
eac_tools-0.86.2 sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/bashplus/bin/bash+
eac_git-0.15.0 vendor/git-subrepo/ext/bashplus/bin/bash+
eac_git-0.15.0 vendor/git-subrepo/ext/test-more-bash/ext/bashplus/bin/bash+
eac_tools-0.84.2 sub/eac_git/vendor/git-subrepo/ext/bashplus/bin/bash+
eac_tools-0.84.2 sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/bashplus/bin/bash+
eac_tools-0.84.1 sub/eac_git/vendor/git-subrepo/ext/bashplus/bin/bash+
eac_tools-0.84.1 sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/bashplus/bin/bash+
eac_tools-0.84.0 sub/eac_git/vendor/git-subrepo/ext/bashplus/bin/bash+
eac_tools-0.84.0 sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/bashplus/bin/bash+
eac_tools-0.83.0 sub/eac_git/vendor/git-subrepo/ext/bashplus/bin/bash+
eac_tools-0.83.0 sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/bashplus/bin/bash+