Revision 9853
Added by Aaron Marcuse-Kubitza almost 12 years ago
lib/sh/util.sh | ||
---|---|---|
676 | 676 |
builtin "$@" |
677 | 677 |
} |
678 | 678 |
|
679 |
.rel() # usage: .rel file [args...] # file relative to ${BASH_SOURCE[0]} dir |
|
680 |
{ |
|
681 |
clog++ clog++ echo_func; local file="$1"; shift |
|
682 |
. "$(canon_rel_path "$(dirname "${BASH_SOURCE[1]}")/$file")" "$@" |
|
683 |
} |
|
684 |
|
|
679 | 685 |
cd() # indent is permanent within subshell cd was used in |
680 | 686 |
{ |
681 | 687 |
log++ echo_func |
Also available in: Unified diff
lib/sh/util.sh: added .rel()