KaiHa / nix-debian

Packaging of the nix package manager for Debian
17 stars 3 forks source link

Nix repl has no history #28

Closed deliciouslytyped closed 5 years ago

deliciouslytyped commented 5 years ago

I'm not sure what the problem is, but nix repl's history doesn't work. The up arrow key doesn't do anything and no history is recorded.

I poked around with strace a bit and it doesn't seem to be a permissions or missing file issue.

lstat("/home/user/.local/share/nix", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/home/user/.local/share/nix/repl-history", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0600, st_size=0, ...}) = 0
read(3, "", 0)                          = 0
close(3)                                = 0

Can you reproduce?

KaiHa commented 5 years ago

History is working for me on Stretch. Do you have some strange settings in your inputrc (man readline)?

KaiHa commented 5 years ago

I can reproduce the not working history on Buster :disappointed:

deliciouslytyped commented 5 years ago

Thanks :(

KaiHa commented 5 years ago

I just created a pull request that enables the history when compiled against libreadline. This changes have worked for me together with the packaging available at salsa.d.o on a Debian 10.