Revision 8692
Added by Aaron Marcuse-Kubitza over 11 years ago
util.run | ||
---|---|---|
62 | 62 |
run_args_cmd () # runs the command line args command |
63 | 63 |
{ |
64 | 64 |
test "$?" -eq 0 || return |
65 |
set -- "${BASH_ARGV[@]}"
|
|
65 |
set -- $(reverse "${BASH_ARGV[@]}")
|
|
66 | 66 |
test "$#" -ge 1 || set -- all |
67 | 67 |
echo_cmd "$(canon_rel_path "$0")" "$@"; "$@" |
68 | 68 |
} |
Also available in: Unified diff
bugfix: lib/util.run: run_args_cmd (): BASH_ARGV is stored in reverse order, so it needs to be reversed to be usable as $@