[PATCH] ash: ignore duplicate history entries

Christoph Gysin christoph.gysin at gmail.com
Wed Feb 27 05:47:47 UTC 2008


Alexander Kriegisch wrote:
> If this patch eliminates duplicates which directly follow upon each
> other in the history, I welcome it very much, because the usual
> behaviour is quite annoying. If it eliminates duplicates in the whole
> history (like the UNIX command 'uniq'), this might not be desired, but
> without having applied the patch I just assume you implemented variant
> #1 and say it is a great thing to have.

This is exactly what my patch does. Eliminating duplicates in the whole
history is the behavior of HISTCONTROL=erasedups (not implemented).

Christoph



More information about the busybox mailing list