Hi,

Correct me if I'm wrong, but while browsing through ~/.lftp/ I noticed
the command history file (~/.lftp/rl_history) doesn't seem to have a
maximum length.
I was surprised to find tens of thousands of lines in the file,
documenting even my first lftp commands ever.

While I love having a command history, I certainly don't need such old
commands in my history.  I only ever use the last few. I seriously
doubt the very old commands will be of any use to me, and they could
actually raise privacy concerns for some users.

I propose adding a new setting that allows the user to specify command
history length.

With such a setting, I would suggest that a value of "0" indicate
infinite history length (users wishing to have no history at all can
symlink the history file to /dev/null) and a value of greater than 0
would logically map to the number of commands to be stored in the
history file (e.g. a value of 500 would mean the last 500 commands are
stored in the history file).

Thanks,

- Kyle

Reply via email to