1

[ubuntu] bash script - syntax error: "(" unexpected

view story
linux-howto

http://ubuntuforums.org – I am trying to write a bash script that calls upon parameters in an array that are stored in a config file, the path of which is stored in /etc/environment and ~/.bash_login as VMS. The config file is sourced using the code below. if [ -e $VMS ] then . $VMS readdata else echo "file not found: "$VMS" " exit 0 fi This all works fine if run in the terminal (which is bash) but not on boot or on login. at boot or login it exits with a "syntax error: "(" unexpected (Hardware)