Revision 9306
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
416 | 416 |
|
417 | 417 |
cd() # indent is permanent within subshell cd was used in |
418 | 418 |
{ |
419 |
cmd2rel_path; set -- "$FUNCNAME" "$@"; echo_params
|
|
419 |
cmd2rel_path; echo_cmd "$FUNCNAME" "$@"
|
|
420 | 420 |
can_log && caller_indent || true |
421 |
builtin "$@" |
|
421 |
builtin "$FUNCNAME" -P "$@"
|
|
422 | 422 |
set_paths |
423 | 423 |
} |
424 | 424 |
|
Also available in: Unified diff
lib/sh/util.sh: cd(): always run cd with -P (expand symlinks) so that $PWD will contain a canonical path which matches the output of `readlink -f`. however, don't display the added -P in the logging output because it distracts from the directory being changed to.