On Thu, May 04, 2017 at 09:53:21PM +0100, Sami Kerola wrote: > Hi Karel, > > $ printf "%s\n%s\n" "a 1 0" "b 0 1" | column > --table-columns=NAME,ID,PARENT --tree NAME --tree-id ID --tree-parent > PARENT > Segmentation fault (core dumped) > > I'm not sure what the command should do in this case. Maybe print some > sort of symbol of circle, such as below?? The library does not support such symbol, it seems better silently ignore such dependence and use only parent->child and ignore child->parent part of the loop. Fixed. For example echo -e '1 5 AA\n2 1 AA.A\n3 1 AA.B\n4 2 AA.A.A\n5 2 AA.A.B' | ./column --tree 3 --tree-id 1 --tree-parent 2 1 5 AA 2 1 ├─AA.A 4 2 │ ├─AA.A.A 5 2 │ └─AA.A.B 3 1 └─AA.B echo -e '1 5 AA\n2 1 AA.A\n3 1 AA.B\n4 2 AA.A.A\n5 1 AA.A.B' | ./column --tree 3 --tree-id 1 --tree-parent 2 1 5 AA 2 1 ├─AA.A 4 2 │ └─AA.A.A 3 1 ├─AA.B 5 1 └─AA.A.B works as expected, although AA and AA.A.B have loop in dependencies. Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html