Revision 12705
Added by Aaron Marcuse-Kubitza almost 11 years ago
util.sh | ||
---|---|---|
301 | 301 |
|
302 | 302 |
echo1() { echo "$1"; } # usage: echo1 values... |
303 | 303 |
|
304 |
esc_args() # usage: array=($(prep_env... (eg. cd); esc_args args...)) |
|
305 |
{ local arg; for arg in "$@"; do printf '%q ' "$arg"; done; } |
|
306 |
|
|
304 | 307 |
# usage: split delim str; use ${parts[@]} |
305 | 308 |
function split() { echo_func; local IFS="$1"; parts=($2); echo_vars parts; } |
306 | 309 |
alias split='declare parts; "split"' |
Also available in: Unified diff
lib/sh/util.sh: added esc_args()