Project

General

Profile

« Previous | Next » 

Revision 8691

lib/util.run: added reverse ()

View differences:

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