Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tsort: pairs can split across lines #759

Merged
merged 1 commit into from
Oct 15, 2024
Merged

Commits on Oct 15, 2024

  1. tsort: pairs can split across lines

    * The previous commit handled the problem of odd input tokens being ignored, but tsort still rejects some valid input
    * Exit with failure code if close() failed, after printing output
    * Allow a single token on a line; this is valid as long as the total number of tokens is even
    * Tested against GNU version
    
    %printf "a b\nb\n  c\n\n" > in.tsort
    %tsort in.tsort # tsort (GNU coreutils) 8.32
    a
    b
    c
    %perl tsort in.tsort # with patch applied
    a
    b
    c
    %perl ~/PerlPowerTools.old/bin/tsort in.tsort # from older commit 9d4efce which gets it totally wrong
    a
    b
    mknos authored Oct 15, 2024
    Configuration menu
    Copy the full SHA
    7044637 View commit details
    Browse the repository at this point in the history