Rework history importing to ensure we read from HISTFILE exactly once and still always read the standard bash/zsh hist files

This commit is contained in:
David Dworken
2022-11-12 16:39:21 -08:00
parent 15abcd8d13
commit 0268554903
2 changed files with 12 additions and 19 deletions

View File

@@ -1503,7 +1503,7 @@ echo UUID-fishcommand
}
// Compare the rest of the hishtory export
out = tester.RunInteractiveShell(t, `hishtory export -pipefail -`+randomCmdUuid[:5])
out = tester.RunInteractiveShell(t, `hishtory export -pipefail -/tmp/client -`+randomCmdUuid[:5])
if out != "" {
t.Fatalf("expected hishtory export to be empty, was=%v", out)
}