Skip to content

nix repl splits long lines in repl-history #15162

@l0b0

Description

@l0b0

Describe the bug

Lines more than 255 characters long are split in repl-history, making it much harder to reuse the command history.

Steps To Reproduce

  1. Run nix repl
  2. Run a single-line command which is longer than 255 characters, such as nixosConfigurations.ci-full-unstable.pkgs.lib.filterAttrs (n: v: n != "frp" && v.enable.isDefined or false && v.enable.value) (checks.x86_64-linux.androidBackupService.extendNixOS { module = { options, ... }: { passthru = { inherit options; }; }; }).node.machine.passthru.options.services
  3. Exit nix repl

Observe the split command in repl-history.

Expected behavior

repl-history should contain the command above on a single line.

Metadata

nix-env (Nix) 2.31.3

Additional context

Checklist


Add 👍 to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions