Revision 9144
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
134 | 134 |
EOF |
135 | 135 |
)" |
136 | 136 |
|
137 |
fi # load new aliases |
|
138 |
if self_being_included; then |
|
137 | 139 |
|
140 |
.() { cmd2rel_path; builtin . "$@"; } |
|
141 |
|
|
142 |
|
|
138 | 143 |
#### verbose output |
139 | 144 |
|
140 | 145 |
|
Also available in: Unified diff
lib/sh/util.sh: override the `.` builtin (a.k.a. `source`) and run canon_rel_path on the included script. this removes .. in the path when it's displayed in bash error messages.