On 03/05/18 19:49, Robert P. J. Day wrote:
so if red hat builds bash based on the source as it is, then that variable is still commented out and the man page is misleading. thoughts?
Both ~/.bash_logout and /etc/bash.bash_logout are honored on my F27 system.
[egreshko@meimei ~]$ !ssh ssh 192.168.1.107 egreshko@192.168.1.107's password: Last login: Mon Mar 5 19:59:43 2018 from 192.168.1.18
[egreshko@f27gq ~]$ ls /tmp/me /tmp/universal ls: cannot access '/tmp/me': No such file or directory ls: cannot access '/tmp/universal': No such file or directory
[egreshko@f27gq ~]$ cat .bash_logout # ~/.bash_logout
touch /tmp/me [egreshko@f27gq ~]$ cat /etc/bash.bash_logout #!/bin/sh
touch /tmp/universal
[egreshko@f27gq ~]$ exit logout Connection to 192.168.1.107 closed. [egreshko@meimei ~]$ ssh 192.168.1.107 egreshko@192.168.1.107's password: Last login: Mon Mar 5 20:00:29 2018 from 192.168.1.18
[egreshko@f27gq ~]$ ll /tmp/me /tmp/universal -rw-rw-r--. 1 egreshko egreshko 0 Mar 5 20:01 /tmp/me -rw-rw-r--. 1 egreshko egreshko 0 Mar 5 20:01 /tmp/universal