Revision 10400
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
281 | 281 |
return 1 |
282 | 282 |
} |
283 | 283 |
|
284 |
is_array() |
|
285 |
{ |
|
286 |
local decl; decl="$(declare -p "$1")" || return; echo_vars decl |
|
287 |
starts_with 'declare -a' "$decl" # also matches -ax |
|
288 |
} |
|
289 |
|
|
284 | 290 |
#### streams |
285 | 291 |
|
286 | 292 |
pipe_delay() # usage: cmd1 | { pipe_delay; cmd2; } |
Also available in: Unified diff
lib/sh/util.sh: added is_array()