We have the 4.2.53 version of bash and are having problems with BPXBATCH when using the exec command.
bash -version
GNU bash, version 4.2.53(2)-release (i370-ibm-openedition)
Copyright © 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
If the last line of my .profile contains an exec for the bash shell
When running a batch TMP with BPXBATCH it produces no output. (ie appears to run but just returns the READY prompt).
This is what I ran
//ADDIT EXEC PGM=IKJEFT01,REGION=0M,TIME=1440
//SYSTSPRT DD SYSOUT=*
//STDOUT DD SYSOUT=*
//STDERR DD SYSOUT=*
//SYSTSIN DD *
BPXBATCH SH ls -la
/*
Same results for PGM=BPXBATCH,PARM=(‘SH ls -la’)
This is what is in my .profile
exec /sysn/rs/bin/bash