Project

General

Profile

« Previous | Next » 

Revision 8465

lib/util.run: run_cmd (): renamed to run_args_cmd to clarify that this runs only the command line args command, not any command. added doc comment to clarify this.

View differences:

lib/util.run
34 34

  
35 35
top_dir="$(dirname "$0")" # outermost script
36 36

  
37
run_cmd ()
37
run_args_cmd () # runs the command line args command
38 38
{
39 39
	test "$?" -eq 0 || return
40 40
	set -- "${BASH_ARGV[@]}"
......
44 44

  
45 45
# users can override this function to perform other commands (or no commands)
46 46
# after the script is read
47
on_exit () { run_cmd; }
47
on_exit () { run_args_cmd; }
48 48
trap on_exit EXIT
49 49

  
50 50
fwd () # usage: subdirs=(...); fwd "$FUNCNAME" "$@"

Also available in: Unified diff