8000 `nix path-info -h` and `sort -h` are incompatible · Issue #16716 · NixOS/nix · GitHub
[go: up one dir, main page]

Skip to content

nix path-info -h and sort -h are incompatible #16716

Open

Description

@trustytrojan

Problem

Although an example of nix path-info -h being piped to sort -h was never documented, it is still possible to run, but unfortunately results in incorrect sorting because sort expects human-readable file sizes in the form outputted by other coreutils, for example 1.0G. It would be nice if this use case was supported instead of having to view non-human-readable filesizes or needing to write a lengthy jq expression.

Proposal

One of the following would close this issue:

  • Have nix path-info print the file sizes in a way compatible with the sort program
  • Add an option to nix path-info to toggle between the current format and a sort-compatible format
  • Document that this use case is not supported

Checklist


Add 👍 to issues you find important.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    0