Bash Associative Araay error - ( Unexpected Syntax error)
I am writing this simple bash script as follows.

    #!/bin/bash

    array = ( /home/abc/Downloads/something.bat /home/abc/Downloads/smb.conf )
    echo ${array[@]}

the expectation is it should print all the names of the files in the array. But I get this error
 
    test.sh: 3: Syntax error: "(" unexpected

If I change the declaration of array to 
     
    array = {/home/abc/Downloads/something.bat /home/abc/Downloads/smb.conf}

this error goes away but I still have an error which is like 
    
    test.sh: 3: array: not found
    test.sh: 4: Bad substitution

Any pointers on how to debug this issue? This is my first time in shell programming so I am unable to fix the issues myself

    
Bash Associative Araay error - ( Unexpected Syntax error)
===

I am writing this simple bash script as follows.

    #!/bin/bash

    array = ( /home/abc/Downloads/something.bat /home/abc/Downloads/smb.conf )
    echo ${array[@]}

the expectation is it should print all the names of the files in the array. But I get this error
 
    test.sh: 3: Syntax error: "(" unexpected

If I change the declaration of array to 
     
    array = {/home/abc/Downloads/something.bat /home/abc/Downloads/smb.conf}

this error goes away but I still have an error which is like 
    
    test.sh: 3: array: not found
    test.sh: 4: Bad substitution

Any pointers on how to debug this issue? This is my first time in shell programming so I am unable to fix the issues myself

    