Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Aug 2002 14:22:18 +0000 (UTC)
From:      naddy@mips.inka.de (Christian Weisgerber)
To:        freebsd-questions@freebsd.org
Subject:   Re: sh(1) equivalent to bash(1)'s $HOME/.bash_logout?
Message-ID:  <aj0j6q$2qv1$2@kemoauc.mips.inka.de>
References:  <20020809071825.A48980@sheol.localdomain>

next in thread | previous in thread | raw e-mail | index | archive | help
D J Hawkey Jr <hawkeyd@visi.com> wrote:

> is there a sh(1) equivalent to bash(1)'s $HOME/.bash_logout?

No, but you set a trap to be executed on exit.

| func()
| {
|   : do something
| }
| 
| trap func 0

-- 
Christian "naddy" Weisgerber                          naddy@mips.inka.de


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?aj0j6q$2qv1$2>