John,
Thanks for your response. I must not understand something correctly. I have read the discussion from April and selected "Replace native environment with specified one" in C/C++ Build -> Environment and I have tried several combinations for the values of the default variables CWD and PWD with no apparent impact on the result.
To try to understand what is going on behind the scenes In C/C++ Build -> Builder Settings I have deselected "Use default build command" and left "build command:" blank. Build directory is the default: "${workspace_loc:/HelloWorld-Sync}". Then in the behavior tab I selected "Build (Incremental build)" and entered "env" in the text box. When I hit the build button I expect to get the remote system's environment variables and I do. What I find peculiar is the OLDPWD and PWD environment variables:
OLDPWD=/home/greg/ptp/workspace/HelloWorld-Sync
PWD=/home/greg
It seems that on the remote system the directory is getting changed from my sync'd directory to my home directory. Am I doing something wrong? what am I missing?