Thread View: gnu.bash.bug
2 messages
2 total messages
Started by Bennett Todd
Tue, 01 Aug 1989 12:25
Re: History, actually not a bug, but a documentation suggestion
Author: Bennett Todd
Date: Tue, 01 Aug 1989 12:25
Date: Tue, 01 Aug 1989 12:25
12 lines
845 bytes
845 bytes
> 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. Sure enough, that is importantly simpler. Thanks! Could some mention of one or another of these hacks be added to the documentation? -Bennett bet@orion.mc.duke.edu
History, actually not a bug, but a documentation suggestion
Author: Brian Fox
Date: Tue, 01 Aug 1989 14:35
Date: Tue, 01 Aug 1989 14:35
37 lines
1557 bytes
1557 bytes
Date: Tue, 1 Aug 89 08:25:53 EDT
From: bet@orion.mc.duke.edu (Bennett Todd)
X-Zippy: I know th'MAMBO!! I have a TWO-TONE CHEMISTRY SET!!
> 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.
Sure enough, that is importantly simpler. Thanks!
Could some mention of one or another of these hacks be added to the
documentation?
-Bennett
bet@orion.mc.duke.edu
(From the Soon to be Released Major Program "Bash 1.03 - the final frontier")
/* Save the history of executed commands. */
if (interactive)
{
char *hf = get_string_value ("HISTFILE");
if (hf)
write_history (hf);
}
Which just means that saying
unset HISTFILE
in your .bashrc file will prevent the history file from being written.
Patience, good things come to those who wait.
Brian Fox
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads