Description of problem: If a gear does not have .env/PATH defined, the default PATH is ":export PATH=/bin:/usr/bin:/usr/sbin", which is not very useful. Version-Release number of selected component (if applicable): rubygem-openshift-origin-node-1.9.3-1.el6oso How reproducible: Always Steps to Reproduce: 1. create an app (on the INT OpenShift right now). 2. rhc ssh <appname> 3. try to run "ls" Actual results: Connecting to <app-uuid>@<domain> ... bash: cat: command not found bash: cat: command not found [\> ls bash: ls: command not found [\> echo $PATH :export PATH=/bin:/usr/bin:/usr/sbin Expected results: PATH should be sane Additional info: /etc/openshift/env/PATH recently changed from "export PATH=/bin:/usr/bin:/usr/sbin" to "/bin:/usr/bin:/usr/sbin", which is necessary due to how rhcsh reads the file. However, this file is marked as "%config(noreplace)" in the RPM, so it does not get upgraded. The old format causes a problem because rhcsh reads the file like this: if [ -f /etc/openshift/env/PATH ] then path=$path:$(< /etc/openshift/env/PATH) fi export PATH=$path rather than as shell code.
Same root cause *** This bug has been marked as a duplicate of bug 965357 ***