delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/06/13/11:03:27

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3B27784E.5000508@prodata.it>
Date: Wed, 13 Jun 2001 16:27:26 +0200
From: Patrick Ohnewein <pohnewein AT prodata DOT it>
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9) Gecko/20010505
X-Accept-Language: en
MIME-Version: 1.0
To: cygwin mailing list <cygwin AT cygwin DOT com>
Subject: BASH question HISTCONTROL

Now, may be OFF TOPIC, but don't know where to ask this.

I use 'HISTCONTROL=ignoreboth' and used 'HISTCONTROL=ignoredups' before.
ignoreboth implies ignoredups, but I am looking for a manner to avoid 
getting a command more than once in my history file (.bash_history), 
ignoredups only avoids multiple CONSEQUENT equal lines.
-- EXTRACT from Bash Reference Manual ---
Set to a value of `ignoredups', it means don't enter lines which match 
the last entered line.
---------------------------------------

Does some of u know a manner to avoid any duplicates in the 
history-file. I set my HISTSIZE and HISTFILESIZE to 5000 and may be I 
will increase, but it would be more efficient to just avoid this duplicates.

To explain my problem I send an
--- EXTRACT from my actual history file ------
c importer/gui/GUIImport.java
ca importer/gui/
gomytest ; j -here -res FAS ; cd -
ca importer/gui/
gomytest ; j -here -res FAS ; cd -
ca importer/gui/
gomytest ; j -here -res FAS ; cd -
ca importer/gui/
gomytest ; j -here -res FAS ; cd -
ca importer/gui/
gomytest ; j -here -res FAS ; cd -
ca importer/gui/
gomytest ; j -here -res FAS ; cd -
ca importer/gui/
gomytest ; j -here -res FAS ; cd -
ca importer/gui/
j LSRVS
ca importer/gui/
j LSRVS
ca importer/gui/
j LSRVS
golicence
ca data/
j LSRVS
ca data/
j LSRVS
ca data/
j LSRVS
ca data/
j LSRVS
ca data/
j LSRVS
ca data/gui
ca gest/nano/
j FASRVS
gomytest ; j -here -res FAS ; cd -
gofakt
c data/PreislistenImport.java
gomytest ; j -here -res FAS ; cd -
c data/PreislistenImport.java
gomytest ; j -here -res FAS ; cd -
c data/PreislistenImport.java
gomytest ; j -here -res FAS ; cd -
c data/PreislistenImport.java
gomytest ; j -here -res FAS ; cd -
c data/PreislistenImport.java
gomytest ; j -here -res FAS ; cd -
c data/PreislistenImport.java
j FASRVS
c data/PreislistenImport.java
gofakt
ca data/
j FASRVS
ca data/
j FASRVS
c data/PreislistenImport.java
e .bash_history
dirs
gofakt
set
set | grep HIST
cd ~
e .bashrc
export HISTFILESIZE
set | grep HIST
....
----------------------------------------------

if someone knows a solution please let me know!

cu pazzo


-- 
+-----------------------------------------------------------------------
|  Save software competition, use Linux and Java!
|
|  Also visit http://www.lugbz.org the Linux User Group in Southtyrol!
|
|  Public PGP KEY: http://www.lugbz.org/PGP_PatrickOhnewein.asc
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

Confidence is the feeling you have before you understand the situation.



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019