add exit from main; bug report 4.3BSD/usr.bin/84
[unix-history] / usr / src / usr.bin / tsort / tsort.1
CommitLineData
898f819a 1.\" @(#)tsort.1 6.1 (Berkeley) %G%
d8e69841 2.\"
898f819a 3.TH TSORT 1 ""
d8e69841
KM
4.AT 3
5.SH NAME
6tsort \- topological sort
7.SH SYNOPSIS
8.B tsort
9[ file ]
10.SH DESCRIPTION
11.I Tsort
12produces on the standard output a totally ordered list of items
13consistent with a partial ordering of items
14mentioned in the input
15.IR file .
16If no
17.I file
18is specified, the standard input is understood.
19.PP
20The input consists of pairs of items (nonempty strings)
21separated by blanks.
22Pairs of different items indicate ordering.
23Pairs of identical items indicate presence, but not ordering.
24.SH "SEE ALSO"
25lorder(1)
26.SH DIAGNOSTICS
27Odd data: there is an odd number of fields in the input file.
28.SH BUGS
29Uses a quadratic algorithm;
30not worth fixing for the typical use of ordering
31a library archive file.