I try to use the values of my config file into my .sh file but it seems it's considered as command.
Here is my test_config.sh:
source pathTo/config.cnf
echo "Name=$user"
echo "Surname=$host"
config.cnf
[client]
user = root
password = pwd
host = localhost
The error appeared is:
$ ./test_config.sh
config.cnf: line 1: user: command not found
config.cnf: line 2: password: command not found
config.cnf: line 3: host: command not found