Here you go

Thursday, May 5, 2016

sh: module: line 1: syntax error: unexpected end of file



sh: module: line 1: syntax error: unexpected end of file
sh: error importing function definition for 'module'

This is the internal bug. 

You just need to rename the file to resolve this issue.

Solution:

1 - Login From Root User.

2 - Rename /etc/profile.d/modules.sh to /etc/profile.d/modules.sh.bak.

3 - Resource the environment to check the issue.

Reference:

For more information read the bug 14259166 ; it suggests to rename the file.