Общие черты между двумя файлами [дубликат]

Из man 1 bash :

Arrays
       Bash  provides one-dimensional indexed and associative array variables.  Any variable
       may be used as an indexed array; the  declare  builtin  will  explicitly  declare  an
       array.   There  is no maximum limit on the size of an array, nor any requirement that
       members be indexed or assigned contiguously.  Indexed  arrays  are  referenced  using
       integers  (including  arithmetic  expressions) and are zero-based; associative arrays
       are referenced using  arbitrary  strings.   Unless  otherwise  noted,  indexed  array
       indices must be non-negative integers.

Ключевая фраза:

Bash предоставляет одномерные индексированные и ассоциативные переменные массива.

Итак, нет, bash не поддерживает многомерные массивы.

10
16.10.2017, 07:38
0 ответов

Теги

Похожие вопросы