bash-4.2-rc2-logout.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. diff --git a/config-top.h b/config-top.h
  2. index 026d4a4..cb0e002 100644
  3. --- a/config-top.h
  4. +++ b/config-top.h
  5. @@ -92,7 +92,7 @@
  6. /* #define SYS_BASHRC "/etc/bash.bashrc" */
  7. /* System-wide .bash_logout for login shells. */
  8. -/* #define SYS_BASH_LOGOUT "/etc/bash.bash_logout" */
  9. +#define SYS_BASH_LOGOUT "/etc/bash.bash_logout"
  10. /* Define this to make non-interactive shells begun with argv[0][0] == '-'
  11. run the startup files when not in posix mode. */
  12. diff --git a/doc/bash.1 b/doc/bash.1
  13. index 04ce845..bfde55e 100644
  14. --- a/doc/bash.1
  15. +++ b/doc/bash.1
  16. @@ -335,8 +335,8 @@ option may be used when the shell is started to inhibit this behavior.
  17. When an interactive login shell exits,
  18. or a non-interactive login shell executes the \fBexit\fP builtin command,
  19. .B bash
  20. -reads and executes commands from the file \fI~/.bash_logout\fP, if it
  21. -exists.
  22. +reads and executes commands from the files \fI~/.bash_logout\fP
  23. +and \fI/etc/bash.bash_logout\fP, if the files exists.
  24. .PP
  25. When an interactive shell that is not a login shell is started,
  26. .B bash
  27. @@ -10558,6 +10558,9 @@ The \fBbash\fP executable
  28. .FN /etc/profile
  29. The systemwide initialization file, executed for login shells
  30. .TP
  31. +.FN /etc/bash.bash_logout
  32. +The systemwide login shell cleanup file, executed when a login shell exits
  33. +.TP
  34. .FN ~/.bash_profile
  35. The personal initialization file, executed for login shells
  36. .TP
  37. --
  38. 2.9.3