Re: environmental problem running command via terminal window
I'm sorry, but I've runned out of ideas. I just works for me fine :-(
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
Can you try to add -T option to ssh command and check what, if any, script is executed? With -T option, 'ssh' should use then the same mode as WinSCP.
Some of the startup scripts are not executed for non-interactive sessions. Try to set your variables in other scripts (like .profile, .bash_profile, etc.)