which2.sh profile file issues with OEL 8.5 update
hi everyone,
Good day.
Recently we updated our OEL8.2 OS to 8.5. After which SAP command ZINVEXACTKEY wasn't working. The SAP debug error was: "sh:error importing function definition for 'which' and sh: which: line 1: syntax error: unexpected end of file’"
Apparently the /etc/profile.d/which2.sh file is updated with the 8.5 release. So, to whether this is the problem, I copied the which2.sh version from another oel8.2 server, technically I reinstated the file to older version before the OEL 8.5 update. After this, the issue in SAP disappeared.
There is a similar RHEL issue with same version update reported in