Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 413 Bytes

array_values.sh.md

File metadata and controls

19 lines (15 loc) · 413 Bytes

array_values

array_values -- Copies elements from an array to an array.

array_values copies elements in an array variable into an array variable.

Usage

// 1. Function form.
void func::array_values(string[]* output, string[]* input)
// 2. Command form.
void sub::array_values(string[]* input) > output

Examples

array=(foo bar)
EXPECT_EQ 'foo,bar' "$(IFS=, sub::array_values array)"