[Tfug] bash history duplication?
Jerry S.
jerry57 at gmail.com
Thu Jun 28 20:09:15 MST 2007
if you are doing something like the following:
ls
cd downloads
ls
ls
ls
cd ../mail
ls
your history will look something like:
68 history
69 ls
70 cd downloads/
71 ls
72 cd ../mail/
73 ls
74 history
Note that the back to back to back ls commands are not repeated in the
history, but do appear multiple times in the history. HISTCONTROL only
stops back to back duplicates.
jer
Felix Tilley wrote:
> Message: 6
> Date: Thu, 28 Jun 2007 17:31:03 GMT
> From: "Earl" <earljviolet at juno.com>
> Subject: [Tfug] bash history duplication?
> To: tfug at tfug.org
> Message-ID: <20070628.103103.2129.0 at webmail10.dca.untd.com>
> Content-Type: text/plain
>
> I have a default line in my .bashrc file that says
>
> export HISTCONTROL=ignoredups
>
> after reading the man page for bash(1), I understand this means
> duplications won't happen. I get dups.
>
> Earl
>
> ====================================
>
> Personally, I prefer to suppress the bash history. I put this in .bashrc:
>
> export HISTFILESIZE=0
>
> Felix
>
>
>
>
>
> _______________________________________________
> Tucson Free Unix Group - tfug at tfug.org
> Subscription Options:
> http://www.tfug.org/mailman/listinfo/tfug_tfug.org
>
More information about the tfug
mailing list