I have modified my bashrc to add to my prompt the return value of last command. This works fine on most machines, but one.
Upon login, most machines report 0 (true). But one machine reports false. Login process is fine; but inside the tasget host, the prompt reports 1 just at login time.
After digging, I have to this:
Code: Select all
# head /etc/profile
echo 4
return 5
Code: Select all
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Feb 11 18:15:26 2019 from 2a01:e35:xx
4
-bash-4.4# echo $?
1
-bash-4.4# echo $?
0
-bash-4.4#