I am writing a rc script to start a node application. I am trying to use
/usr/bin/env to set environment variables I have put in a file. The Problem I have is the variable that was loaded in the script is not being treated the same way as if I was using literals. if I call /usr/bin/env TEST="TEST TEST TEST" /usr/local/bin/zsh when I look call /usr/bin/env inside new zsh shell it will show the saved envronment variable as TEST=TEST TEST TEST. If the same TEST="TEST TEST TEST" line were read from a file and stored in a variable only TEST="TEST would be passed and the program would not be called. If I change the file to remove the spaces zsh would be called but the TEST variable would have the value "TESTTESTTEST" (including the quotes.) I seems like I am missing something basic here but how can I have the sh varable pass a string to env as if it were typed?