posted 8 years ago
I have 1) a properties file and 2) a shell script.
In my shell script, I am trying to call a property, P4_PATH (defined in the properties file).
If I try echo $P4_PATH, it works fine and prints the path (/Users/Russy/Perforce/iOS_develop).
Issue: If I try, cd $P4_PATH
I get “: No such file or directory: /Users/Russy/Perforce/iOS_develop”
Can someone please let me know what could be going wrong?
The path is a valid one. If I manually cd to that path, it will work fine.
Thanks,
Russy