On 3/22/15 7:50 PM, Christoph Anton Mitterer wrote:
> Hey.
> 
> The bash manpage says:
>> When a login shell exits, bash reads and executes commands from the
>> file ~/.bash_logout, if it exists.
> 
> However, it seems that this happens only for interactive login
> shells,... at least I couldn't get it executed for non-interactive login
> shells with the --login option.
> 
> Could you please clarify that?

It does when you call the exit builtin.  EOF to an interactive shell
executes the exit builtin, but you have to explicitly call it when in
a non-interactive shell.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    c...@case.edu    http://cnswww.cns.cwru.edu/~chet/

Reply via email to