Revision 8899
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/util.sh | ||
---|---|---|
37 | 37 |
|
38 | 38 |
alias end_try='return "$e"' |
39 | 39 |
|
40 |
#### integers |
|
41 |
|
|
42 |
let () { builtin let "$@" || true; } |
|
43 |
# "If the last ARG evaluates to 0, let returns 1" (`help let`) |
|
44 |
|
|
40 | 45 |
#### arrays |
41 | 46 |
|
42 | 47 |
join () { local IFS="$delim"; echo "$*"; } # usage: delim=... join elems... |
Also available in: Unified diff
lib/util.sh: added let () wrapper that prevents it from triggering error-exit