|
From: | shawn wilson |
Subject: | Array not defined when being set inline |
Date: | Tue, 10 Oct 2017 08:00:58 -0400 |
I guess that's the right way to describe what I'm seeing: [swilson@localhost ~]$ unset f; f=(aaa bbb ccc) declare -p f declare -x f="(aaa bbb ccc)" [swilson@localhost ~]$ unset f; f=("aaa" "bbb" "ccc") declare -p f declare -x f="(aaa bbb ccc)" [swilson@localhost ~]$ unset f; f=(aaa bbb ccc) [swilson@localhost ~]$ declare -p f declare -a f='([0]="aaa" [1]="bbb" [2]="ccc")' Is this known? What exactly is going on / what does this mean?
[Prev in Thread] | Current Thread | [Next in Thread] |