$ a='"apple","ball","cat"'
$ a='['$a
$ echo $a
["apple","ball","cat"
$ a=$a']'
$ echo $a
b
I'm stumped hard by the result b
while I expect to see ["apple,"ball","cat"]
. What am I missing here?
This is from bash
shell on Mac. Also see it on CentOS 7, while not on Fedora. Can someone please explain?
set -xv
? – choroba Nov 14 '17 at 22:28