🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #401

Re: History, actually not a bug, but a documentation suggestion

#401
From: Jason S. Molenda
Date: Mon, 31 Jul 1989 20:18
21 lines
1151 bytes
bet@ORION.MC.DUKE.EDU (Bennett Todd) writes:

>	(1) Create a directory "~/.bash-histories" (for example)
>	(2) Add to .bashrc the incantation:
>	    	HISTFILE=~/.bash-histories/$$
>	    (making sure of course that .bashrc is sourced from
>	    .profile).
>	(3) Add to .bash_logout the following:
>	    	rm ~/.bash-histories/*

>Far out! Now *everybody* can be happy!

  even easier is to create a file '~/.bash_history', put the line
HISTFILE=~/.bash_history in your .bashrc file and then chmod the
file to 444 (-r--r--r--) and bash won't be able to write to the
file so your history will not be recorded.

>-Bennett
>bet@orion.mc.duke.edu

Jason molenda, molenda@umn-cs.cs.umn.edu
Technical Details
Message-ID: <14863@umn-cs.CS.UMN.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!srcsip!nic.MR.NET!umn-cs!molenda
References: <8907262102.AA15543@orion>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!srcsip!nic.MR.NET!umn-cs!molenda
From: molenda@umn-cs.CS.UMN.EDU (Jason S. Molenda)
Newsgroups: gnu.bash.bug
Subject: Re: History, actually not a bug, but a documentation suggestion
Message-ID: <14863@umn-cs.CS.UMN.EDU>
Date: 31 Jul 89 20:18:06 GMT
References: <8907262102.AA15543@orion>
Distribution: gnu
Organization: University of Minnesota, Minneapolis
Lines: 21