bin/54683: commit references a PR
dfilter at FreeBSD.ORG
Sun Aug 1 16:40:05 UTC 2010
The following reply was made to PR bin/54683; it has been noted by GNATS.
From: dfilter at FreeBSD.ORG (dfilter service)
To: bug-followup at FreeBSD.org
Subject: Re: bin/54683: commit references a PR
Date: Sun, 1 Aug 2010 16:38:00 +0000 (UTC)
Date: Sun Aug 1 16:37:51 2010
New Revision: 210736
sh: Do not enter consecutive duplicates into the history.
This simply sets a flag in libedit. It has a shortcoming in that it does not
apply to multi-line commands.
Note that a configuration option for this is not going to happen, but always
having this seems better than not having it. NetBSD has done the same.
Obtained from: NetBSD
MFC after: 1 month
--- head/bin/sh/histedit.c Sun Aug 1 15:55:49 2010 (r210735)
+++ head/bin/sh/histedit.c Sun Aug 1 16:37:51 2010 (r210736)
@@ -168,6 +168,7 @@ sethistsize(hs)
(histsize = atoi(hs)) < 0)
histsize = 100;
history(hist, &he, H_SETSIZE, histsize);
+ history(hist, &he, H_SETUNIQUE, 1);
svn-src-all at freebsd.org mailing list
To unsubscribe, send any mail to "svn-src-all-unsubscribe at freebsd.org"
More information about the freebsd-bugs