Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-Id: <5.1.0.14.2.20010613101105.0242feb8@pop3.cris.com> X-Sender: rrschulz AT pop3 DOT cris DOT com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Wed, 13 Jun 2001 10:15:40 -0700 To: Patrick Ohnewein , cygwin mailing list From: Randall R Schulz Subject: Re: BASH question HISTCONTROL In-Reply-To: <3B27784E.5000508@prodata.it> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Patrick, Check out HISTIGNORE. It's not about duplicates, but I use it to get rid of things I do constantly but which I don't really want in the history, like: cd, td, fd, wd, ll, ls, lf, lt, j, ok (yeah, most of those are aliases or shell procedures I define as shorthands for or embellishments of common or built-in commands: td (pushd), fd (popd), wd (pwd), ok (echo ok^G), j (jobs)). HISTIGNORE repsects glob wildcards, by the way. You might get better results from this than from duplicate control. At least it can be complementary. Randall Schulz Mountain View, CA USA At 07:27 2001-06-13, Patrick Ohnewein wrote: >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... > >cu pazzo -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple