I would like to create an environment variable that will output the current date. I have added the following to ~/.pam_environment:
TODAY=$(date +%F)
Apparently, you have to log out after changing ~/.pam_environment. I did that but
echo $TODAY
outputs a blank line.
What am I doing wrong?