I want to export variables to linux using shell script. My shell scrip is as following:
export dbHost=server01
export dbName=someName
when I print these variable after running script I get the following output
"eclare -x dbHost=" server01
declare -x dbName=" someName "
So it correctly exports the dbName but not dbHost. If I keep only the first line
export dbHost=server01
in the script then it prints dbHost correctly. What am I doing wrong here???