delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/06/13/17:31:09

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
Date: Wed, 13 Jun 2001 23:07:30 +0300
Message-Id: <200106132007.XAA14935@linux.>
From: "Ehud Karni" <ehud AT unix DOT simonwiesel DOT co DOT il>
To: "Patrick Ohnewein" <pohnewein AT prodata DOT it>
Subject: Re: BASH question HISTCONTROL
CC: cygwin AT cygwin DOT com
In-reply-to: <3B27784E.5000508@prodata.it> (message from Patrick Ohnewein on
Wed, 13 Jun 2001 16:27:26 +0200)
Organization: Simon & Wiesel Insurance agency
Reply-to: ehud AT unix DOT simonwiesel DOT co DOT il
References: <3B27784E DOT 5000508 AT prodata DOT it>
X-Mailer: Emacs 20.7.1 rmail (send-msg 1.104)
MIME-Version: 1.0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id RAA19891

On Wed, 13 Jun 2001 16:27:26 +0200, Patrick Ohnewein <pohnewein AT prodata DOT it> wrote:
> 
> 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.

I intended to answer your request but I found out I have answer for
tcsh not bash since tcsh has been ported to cygwin you might try it.
Add the line:
    set histdup = erase            # save only unique entries
to your .login (or .cshrc if your using tcsh just for interactive
sessions, like I do).

Ehud.


-- 
 @@@@@@ @@@ @@@@@@ @    @    Ehud Karni                       ינרק דוהא
     @    @      @  @@  @    Senior System Support   בשחמ תוכרעמב הכימת
     @    @ @    @ @  @@     Mivtach - Simon               ןומיס - חטבמ
     @    @ @    @ @    @    Insurance agencies          חוטבל תויונכוס
 Better  Safe  Than  Sorry   Tel: +972-3-6212-757  Fax: +972-3-6292-544
 http://www.simonwiesel.co.il        mailto:ehud AT unix DOT simonwiesel DOT co DOT il

--
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