[Bug 252663] tcsh history file is not merged
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Jan 14 08:10:26 UTC 2021
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252663
Bug ID: 252663
Summary: tcsh history file is not merged
Product: Base System
Version: 12.2-RELEASE
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: bin
Assignee: bugs at FreeBSD.org
Reporter: omatsuda000 at gmail.com
The tcsh has been updated to 6.21.00 in FreeBSD 12.2-Release.
Unfortunately, the new tcsh 6.21.00 has a problem on merging histories.
When several tcsh instances are running with the "merge" option for "savehist"
shell variable, each tcsh instance doesn't merge the history list to existing
~/.history on exit: it just overwrites ~/.history with its own history list.
How to reproduce:
1) open two tcsh's (let them as tcsh A and tcsh B) with .cshrc including
set savehist = (1000 merge)
2) execute
echo abc
on tcsh A and then exit
3) execute
echo def
on tcsh B and then exit
4) open another tcsh and do "history".
It only includes "echo def" not "echo abc".
Of course we expect both "echo abc" and "echo def" were included.
The situation is the same for 13-Current.
To fix this, I found a patch for 6.22.00 at
https://mailman.astron.com/pipermail/tcsh/2020-February/000072.html
I confirmed that the mentioned patch fixes the problem also for 6.21.00, but
I'm not sure whether the patch has any side effect or not.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list