help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: declare arr=( .. ) vs declare -a arr=( .. )


From: Alex fxmbsw7 Ratchev
Subject: Re: declare arr=( .. ) vs declare -a arr=( .. )
Date: Sat, 13 Mar 2021 11:56:02 +0100

thank you, :))

On Sat, Mar 13, 2021 at 11:52 AM Koichi Murase <myoga.murase@gmail.com>
wrote:

> 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)'.
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]