Bug 2536840
| Summary: | commands run in `nix repl` are not added to repl history | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Aidan D <aidandenlinger> |
| Component: | nix | Assignee: | Jens Petersen <petersen> |
| Status: | CLOSED ERRATA | QA Contact: | |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 45 | CC: | petersen |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | nix-2.31.6-1.el10_4 nix-2.31.6-1.el10_3 nix-2.35.3-2.fc44 nix-2.31.6-1.fc43 nix-2.31.6-1.el10_2 nix-2.35.3-2.fc45 | Doc Type: | --- |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2026-10-21 01:00:22 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Aidan D
2026-09-17 20:42:04 UTC
Thanks for the report. I can reproduce also in newer rawhide. Tbh, I don't use the repl often, so I was not aware of this. Some investigation is needed I think: I can only comment that the fedora nix package is built with the readline library. Earlier I used editline, before the package was officially included in fedora. But that could be unrelated. Though it sounds like you are saying the problem is not writing repl-history iirc? > Though it sounds like you are saying the problem is not writing repl-history iirc?
Correct, the `strace` output seems to imply it thinks there is never anything to add to repl-history. It always writes an empty string.
(I guess a quasi-workaround might be to use rlwrap to run nix repl, but not a proper solution obviously.) I think one thing we could try is to build nix without readline and see what happens. I looked a bit at src/libcmd/repl-interacter.cc and see there differences in the code used at least. To build it locally you basically just need to remove the '-Dlibcmd:readline-flavor=readline' line from nix.spec and install editline-devel. I could provide a scratch build I suppose if needed. I tried on Rawhide and indeed it seems to fix the problem for me. https://src.fedoraproject.org/rpms/nix/c/74c7b48688a76b54e49a3e6c0887caaf4adbd2ec?branch=rawhide is what I pushed for Rawhide. FEDORA-2026-d34d705a38 (nix-2.35.3-1.fc45) has been submitted as an update to Fedora 45. https://bodhi.fedoraproject.org/updates/FEDORA-2026-d34d705a38 FEDORA-2026-d9fe9e0ac3 (nix-2.35.3-2.fc44) has been submitted as an update to Fedora 44. https://bodhi.fedoraproject.org/updates/FEDORA-2026-d9fe9e0ac3 FEDORA-2026-065497e462 (nix-2.31.6-1.fc43) has been submitted as an update to Fedora 43. https://bodhi.fedoraproject.org/updates/FEDORA-2026-065497e462 FEDORA-EPEL-2026-ffed74cdfb (nix-2.31.6-1.el10_4) has been submitted as an update to Fedora EPEL 10.4. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-ffed74cdfb FEDORA-EPEL-2026-51b9011519 (nix-2.31.6-1.el10_3) has been submitted as an update to Fedora EPEL 10.3. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-51b9011519 FEDORA-2026-d34d705a38 has been pushed to the Fedora 45 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-d34d705a38` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-d34d705a38 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-EPEL-2026-ffed74cdfb has been pushed to the Fedora EPEL 10.4 testing repository. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-ffed74cdfb See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-EPEL-2026-51b9011519 has been pushed to the Fedora EPEL 10.3 testing repository. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-51b9011519 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2026-065497e462 has been pushed to the Fedora 43 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-065497e462` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-065497e462 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2026-d9fe9e0ac3 has been pushed to the Fedora 44 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-d9fe9e0ac3` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-d9fe9e0ac3 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-EPEL-2026-06f144fbdf (nix-2.31.6-1.el10_2) has been submitted as an update to Fedora EPEL 10.2. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-06f144fbdf FEDORA-EPEL-2026-06f144fbdf has been pushed to the Fedora EPEL 10.2 testing repository. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-06f144fbdf See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-EPEL-2026-ffed74cdfb (nix-2.31.6-1.el10_4) has been pushed to the Fedora EPEL 10.4 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-EPEL-2026-51b9011519 (nix-2.31.6-1.el10_3) has been pushed to the Fedora EPEL 10.3 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2026-d9fe9e0ac3 (nix-2.35.3-2.fc44) has been pushed to the Fedora 44 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2026-065497e462 (nix-2.31.6-1.fc43) has been pushed to the Fedora 43 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-EPEL-2026-06f144fbdf (nix-2.31.6-1.el10_2) has been pushed to the Fedora EPEL 10.2 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2026-d34d705a38 (nix-2.35.3-2.fc45) has been pushed to the Fedora 45 stable repository. If problem still persists, please make note of it in this bug report. |