If I set zopen bash as my default shell in my RACF OMVS segment and I have a /etc/profile that just exports some environment variables, the shell will break.
OMVS Segment:
OMVS INFORMATION
----------------
...
PROGRAM= /usr/local/zopen/local/bin/bash
...
/etc/profile
# encoding & tagging stuff
export _BPXK_AUTOCVT='ON'
export _CEE_RUNOPTS='FILETAG(AUTOCVT,AUTOTAG) POSIX(ON)'
export _TAG_REDIR_ERR=txt
export _TAG_REDIR_IN=txt
export _TAG_REDIR_OUT=txt
# zopen
export ZOPEN_HOME=/usr/local/zopen/local
export PATH=${ZOPEN_HOME}/bin:$PATH
export LIBPATH=${ZOPEN_HOME}/lib:$LIBPATH
export MANPATH=${ZOPEN_HOME}/share:$MANPATH
# zoau
export ZOAU_HOME=/usr/lpp/IBM/zoau/v1r3
export PATH=${ZOAU_HOME}/bin:$PATH
export LIBPATH=${ZOAU_HOME}/lib:$LIBPATH
export PYTHONPATH=${PYTHONPATH}:${ZOAU_HOME}/lib
export MANPATH=${ZOAU_HOME}/docs/%L:$MANPATH
Broken Shell on Login:
However, if i just add a command (like ls for example) to the end of /etc/profile, everything works:
I tested this on a 3.1 system that should have all of the latest service installed.