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)
Nov 21 2024, 1:41 PM
Unknown Object (File)
Oct 19 2024, 1:38 AM
Unknown Object (File)
Oct 3 2024, 10:16 PM
Unknown Object (File)
Oct 1 2024, 3:26 PM
Unknown Object (File)
Sep 22 2024, 2:29 PM
Unknown Object (File)
Sep 18 2024, 5:06 AM
Unknown Object (File)
Sep 18 2024, 2:15 AM
Unknown Object (File)
Sep 15 2024, 5:54 AM

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.