Running TEST_JOB or other Jobs in Applications Manager on a RedHat 8.x produces errors in the job output file as seen below.
sh: switchml: line 1: syntax error: unexpected end of file
sh: error importing function definition for `switchml'
sh: ml: line 1: syntax error: unexpected end of file
sh: error importing function definition for `ml'
sh: _module_raw: line 1: syntax error: unexpected end of file
sh: error importing function definition for `_module_raw'
sh: scl: line 1: syntax error: unexpected end of file
sh: error importing function definition for `scl'
sh: module: line 1: syntax error: unexpected end of file
sh: error importing function definition for `module'
sh: which: line 1: syntax error: unexpected end of file
sh: error importing function definition for `which'
This does not effect the job from running and finishing.
Red Hat 8.x+
Applications Manager 9.3x, 9.4x, 9.5x
This is caused by bash functions set in RedHat 8.x
The following can be used as work around.
Adding the following to the $AW_HOME/site/sosite file. Once added, the Applications Manager process will need to be stopped, and sosite needs to be run before before restarting for the change to take effect.
unset module
unset _module_raw
unset switchml
unset ml
unset scl
unset ${which_opt} which
unset which_declare
Or you can use a single command documented:
unset -f $(env | grep -oP "^BASH_FUNC_\K([^%]*)")
This can be set in the .bash_profile so it takes affect upon successful login, in the sosite file so that only the Applications Manager environment is affected, or anywhere else your OS admins prefers.