Revision 10821
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
268 | 268 |
function split() { echo_func; local IFS="$1"; parts=($2); echo_vars parts; } |
269 | 269 |
alias split='declare parts; "split"' |
270 | 270 |
|
271 |
join() { local IFS="$delim"; echo "$*"; } # usage: delim=... join elems...
|
|
271 |
join() { local IFS="$delim"; echo "$*"; } # usage: delim=char join elems...
|
|
272 | 272 |
|
273 | 273 |
reverse() # usage: array=($(reverse args...)) |
274 | 274 |
{ |
Also available in: Unified diff
fix: lib/sh/util.sh: join(): documented that delim must be a single char