[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: declare arr=( .. ) vs declare -a arr=( .. )
From: |
Koichi Murase |
Subject: |
Re: declare arr=( .. ) vs declare -a arr=( .. ) |
Date: |
Sat, 13 Mar 2021 18:52:04 +0800 |
2021年3月13日(土) 6:33 Alex fxmbsw7 Ratchev <fxmbsw7@gmail.com>:
> in in-function content, is there a difference ?
There is no difference in the current version, but there was a
difference until 3.0. In Bash 3.0 or before, with `declare arr=(1 2
3)', arr becomes a scalar variable that contains the value `(1 2 3)'.