[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug in documentation?

From: Chet Ramey
Subject: Re: bug in documentation?
Date: Sun, 22 Mar 2015 22:08:51 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

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    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]