Date: Fri, 9 Aug 2002 10:42:09 -0500 From: D J Hawkey Jr <hawkeyd@visi.com> To: Christian Weisgerber <naddy@mips.inka.de> Cc: questions at FreeBSD <freebsd-questions@freebsd.org> Subject: Re: sh(1) equivalent to bash(1)'s $HOME/.bash_logout? Message-ID: <20020809104209.A50604@sheol.localdomain> In-Reply-To: <200208091422.g79EMHGC093218@kemoauc.mips.inka.de>; from naddy@mips.inka.de on Fri, Aug 09, 2002 at 04:22:17PM %2B0200 References: <20020809071825.A48980@sheol.localdomain> <200208091422.g79EMHGC093218@kemoauc.mips.inka.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On Aug 09, at 04:22 PM, Christian Weisgerber wrote:
>
> 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
Hey, this is a neat thought. But for login/interactive shells, where
would I put it? $HOME/.profile doesn't seem right.
> Christian "naddy" Weisgerber
Dave
--
______________________ ______________________
\__________________ \ D. J. HAWKEY JR. / __________________/
\________________/\ hawkeyd@visi.com /\________________/
http://www.visi.com/~hawkeyd/
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?20020809104209.A50604>
