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 Date: Wed, 13 Jun 2001 23:07:30 +0300 Message-Id: <200106132007.XAA14935@linux.> From: "Ehud Karni" To: "Patrick Ohnewein" 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 Content-Type: text/plain; charset=iso-8859-8 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id RAA19891 On Wed, 13 Jun 2001 16:27:26 +0200, Patrick Ohnewein 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