Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tsort: raise error for odd input tokens
* The input "a" by itself results in a fatal error for BSD and GNU versions * Previously this version ignored odd arguments, but that is contrary to the standard [1] * Also, the standard does not stipulate that each line contains only one pair * When reading source code of OpenBSD version I discovered the input "a b b c b d d f c e" on one line is treated the same as for pairs on separate lines (GNU tsort behaves the same here) * Accept multiple pairs per line for better compatibility, and remove the mention of the old limitation in the POD 1. https://pubs.opengroup.org/onlinepubs/9699919799/utilities/tsort.html
- Loading branch information