On one of my systems, I have a strange situation. When I execute env on any machine the result looks like below:
[sup@vviesup07 ~ ]$ env |grep PATH
PATH=/usr/java/latest/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/sup/.local/bin:/home/sup/bin:/home/sup/.local/bin:/home/sup/bin
[sup@vviesup07 ~ ]$
But on one machine with one user, the result looks like:
[aut@vviesup09 ~ ]$ env |grep PATH
PATH=.:/usr/lib/oracle/12.2/client64/bin:$PATH
[aut@vviesup09 ~ ]$
As you see, PATH is not evaluated. It just displays $PATH instead of evaluating the variable. What can be wrong here? Where can I look for the error?