Project

General

Profile

« Previous | Next » 

Revision 9306

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.

View differences:

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