Skip to content

Request: less and more #9083

@mcandre

Description

@mcandre

Hi,

I noticed two prominent utilities missing from uutils: the less and more paginators.

As with many software components, Rust implementations of less and more would be much appreciated.

Note that both utilities corrupt file data. Hard tabs are rendered as spaces. When copied to the clipboard or otherwise fed downstream, then Go source files, makefiles, and other systems sensitive to indentation style end up breaking down. Recommend preserving runes as-is during pagination.

This glitch happens with less and more in macOS. I suspect less and more similarly misbehave on various other BSD's. Perhaps on Linux. Perhaps in Command Prompt, Windows PowerShell, and the nightmare PowerShell Core interpreters as well.

There doesn't appear to be a POSIX entry for less. However, there is one for more.

https://pubs.opengroup.org/onlinepubs/9799919799/utilities/more.html

Work with the "Austin group" so that POSIX gains an entry for less; and has both less and more require rune preservation during pagination.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions