Project

General

Profile

« Previous | Next » 

Revision 10271

lib/sh/util.sh: moved runscript-related commands to lib/runscripts/util.run because these only apply to runscripts

View differences:

util.sh
860 860
function bg_cmd() { echo_func; "$@" & log_last_bg; } # usage: bg_cmd cmd...
861 861
alias bg_cmd='"bg_cmd" ' # last space alias-expands next word
862 862

  
863
run_args_cmd() # runs the command line args command
864
{
865
	eval set -- "$(reverse "${BASH_ARGV[@]}")"
866
	test $# -ge 1 || set -- all
867
	echo_cmd "$top_script" "$@"; time "$@"
868
}
869 863

  
870
fwd() # usage: subdirs=(...); fwd "$FUNCNAME" "$@"
871
{
872
	echo_func
873
	: "${subdirs?}"
874
	
875
	for subdir in "${subdirs[@]}"; do "$top_dir"/"$subdir"/run "$@"; done
876
}
877

  
878

  
879 864
#### filesystem
880 865

  
881 866
alias mkdir='mkdir -p'

Also available in: Unified diff