Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fish_history corrupted with NUL bytes #10483

Closed
planet36 opened this issue May 7, 2024 · 1 comment
Closed

fish_history corrupted with NUL bytes #10483

planet36 opened this issue May 7, 2024 · 1 comment

Comments

@planet36
Copy link

planet36 commented May 7, 2024

(Adaptedfrom this comment #10300 (comment))

I've been increasingly encountering this problem for the past few months. It manifests after I first log in. When I type history, no history is printed, even though the fish_history file still exists and contains earlier history.

The last time it happened, I noticed there were embedded NUL bytes in fish_history with a newer entry. (screenshot included)
When I removed the entry containing the NUL bytes, and logged out & in, things worked normally.

(Before staring X)
$ echo $TERM

linux

(Within X)
$ echo $TERM

tmux-256color

$ fish --version

fish, version 3.7.1

$ uname -srm

Linux 6.8.9-arch1-1 x86_64

$ fisher list

jorgebucaran/fisher
jethrokuan/z

$ tmux -V

tmux 3.4

/ is ext4

$ wc --lines fish_history.BAD

141748 fish_history.BAD

Clipboard_05-05-2024_01

@faho
Copy link
Member

faho commented May 8, 2024

Let's leave this in #10300 for now, I'm not convinced it's a separate issue.

@faho faho closed this as completed May 8, 2024
@faho faho added the duplicate label May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants