Page MenuHomeFreeBSD

tsort(1): Add EXAMPLES section
ClosedPublic

Authored by fernape on Jul 29 2020, 5:48 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 19, 8:17 AM
Unknown Object (File)
Jan 9 2024, 10:02 PM
Unknown Object (File)
Dec 20 2023, 7:11 AM
Unknown Object (File)
Dec 11 2023, 2:03 PM
Unknown Object (File)
Nov 4 2023, 6:45 AM
Unknown Object (File)
Oct 3 2023, 6:36 AM
Unknown Object (File)
Sep 19 2023, 12:54 AM
Unknown Object (File)
Sep 18 2023, 10:00 PM

Details

Reviewers
gbe
Group Reviewers
manpages
Commits
rS364976: tsort(1): Add EXAMPLES section
Summary

Add some examples for this tool. Be aware that I did not add any examples for
-l since I can not grasp how it really works. For example, imagine a file like
this:

A B
B C
C A
A D
D E
E F
F A

This is what we show without -l:

tsort: cycle in data
tsort: A
tsort: D
tsort: E
tsort: F
F
tsort: cycle in data
tsort: A
tsort: B
tsort: C
C
A
D
B
E

and with -l:

tsort: cycle in data
tsort: A
tsort: D
tsort: E
tsort: F
F
tsort: cycle in data
tsort: A
tsort: B
tsort: C
C
A
D
B
E

So exactly the same output

Compare this with the output of OpenBSD 6.7 for the same file.

Without -l:

tsort: cycle in data
tsort: A
tsort: D
tsort: E
tsort: F
A
B
C
D
E
F

and with -l:

tsort: cycle in data
tsort: D
tsort: E
tsort: F
tsort: A
F
tsort: cycle in data
tsort: B
tsort: C
tsort: A
A
B
C
D
E

I also asked in @hackers but got no answer.

Test Plan
  • mandoc -Tlint clean
  • igor clean (spurious warnings about repeating letters in the examples)
  • aspell happy
  • man ./colrm.1 renders the page properly

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

gbe added a subscriber: gbe.

I can't speak for the differences of the OpenBSD version of tsort, but in generell the examples are fine.

This revision is now accepted and ready to land.Aug 29 2020, 3:38 PM
This revision was automatically updated to reflect the committed changes.