]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r210736: sh: Do not enter consecutive duplicates into the history.
authorjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 1 Sep 2010 19:49:24 +0000 (19:49 +0000)
committerjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 1 Sep 2010 19:49:24 +0000 (19:49 +0000)
commit9eb8eb3b8330a9ffc88346f77b6b15b73204c4f4
tree337624bbb8a2728ec5fb4d0bf3f1c9fca010899a
parenta480dc618d90e5c26648a9dff3d4d77b2527cc61
MFC r210736: 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.

PR: bin/54683
Obtained from: NetBSD

git-svn-id: svn://svn.freebsd.org/base/stable/8@212111 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
bin/sh/histedit.c