Project

General

Profile

« Previous | Next » 

Revision 9144

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.

View differences:

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