Revision 8691
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/util.run | ||
---|---|---|
18 | 18 |
} |
19 | 19 |
fi #### |
20 | 20 |
|
21 |
reverse () # usage: array=($(reverse args...)) |
|
22 |
{ |
|
23 |
local i |
|
24 |
for (( i=$#; i >= 1; i-- )); do printf '%q ' "${!i}"; done |
|
25 |
} |
|
26 |
|
|
21 | 27 |
echo_cmd () { echo "$PS4$*" >&2; } |
22 | 28 |
|
23 | 29 |
echo_run () { echo_cmd "$@"; "$@"; } |
Also available in: Unified diff
lib/util.run: added reverse ()