bash_sub.bash

来自「UNIX下SH的实现源码」· BASH 代码 · 共 29 行

BASH
29
字号
# bash_sub.bash --- stub for standalone shell scripts using bash library
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1992-07-13
# Last modified: 1993-09-29
# Public domain

#:docstring bash_sub:
# Standard subroutines for bash scripts wishing to use "require" to load
# libraries.
#
# Usage: In each directory where a bash script that uses this script
# exists, place a copy of this script.  Then, at the top of such scripts,
# put the command
#
#    source ${0%/*}/bash_sub || exit 1
#
# Then you can use `require' to load packages. 
#
#:end docstring:

default_FPATH="~friedman/etc/init/bash/functions/lib"

source "${default_FPATH}/feature"
REQUIRE_FAILURE_FATAL=t

FPATH="${FPATH-${default_FPATH}}"

# bash_sub.bash ends here

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?