Project

General

Profile

« Previous | Next » 

Revision 9945

lib/sh/util.sh: added in_top_dir()

View differences:

lib/sh/util.sh
650 650
}
651 651
set_paths
652 652

  
653
# usage: in_top_dir cmd...
654
function in_top_dir() { echo_func; (cd "$top_dir"; "$@"); }
655
alias in_top_dir='"in_top_dir" ' # last space alias-expands next word
656

  
653 657
PATH_rm() # usage: PATH_rm path... # removes components from the PATH
654 658
{
655 659
	echo_func; echo_vars PATH; : "${PATH?}"

Also available in: Unified diff