Revision 8833
Added by Aaron Marcuse-Kubitza about 11 years ago
util.sh | ||
---|---|---|
24 | 24 |
|
25 | 25 |
set_var () { eval "$1"'="$2"'; } |
26 | 26 |
|
27 |
join () { local IFS="$delim"; echo "$*"; } # usage: (delim=...; join elems...)
|
|
27 |
join () { local IFS="$delim"; echo "$*"; } # usage: delim=... join elems...
|
|
28 | 28 |
|
29 | 29 |
reverse () # usage: array=($(reverse args...)) |
30 | 30 |
{ |
Also available in: Unified diff
*{.sh,run}: commands that take named arguments: usage messages: changed to use simpler bash syntax for specifying command-specific env vars, which does not require a subshell ("The environment for any simple command or function may be augmented temporarily by prefixing it with parameter assignments" <http://www.gnu.org/software/bash/manual/bash.html#Environment>)