Project

General

Profile

« Previous | Next » 

Revision 10059

bugfix: lib/sh/util.sh: .rel(): first use realpath() on BASH_SOURCE1 in case it's a symlink (as it is for bin/make)

View differences:

lib/sh/util.sh
730 730
.rel() # usage: .rel file [args...] # file relative to ${BASH_SOURCE[0]} dir
731 731
{
732 732
	clog++ clog++ echo_func; local file="$1"; shift
733
	. "$(canon_rel_path "$(dirname "${BASH_SOURCE[1]}")/$file")" "$@"
733
	. "$(canon_rel_path "$(dirname "$(realpath "${BASH_SOURCE[1]}")")/$file")" \
734
"$@"
734 735
}
735 736

  
736 737
cd() # indent is permanent within subshell cd was used in

Also available in: Unified diff