package Psh
::Builtins
::Exit
;
# TODO: What if a string is passed in?
$result = 0 unless defined($result) && $result;
my $file= Psh
::OS
::catfile
(Psh
::OS
::get_home_dir
(),".${Psh::bin}_logout");
process_file
(abs_path
($file));
Psh
::OS
::exit_psh
($result);