4 ms·
For fun casual reading, try comparing the source code of any BSD utility vs. GNU. BSD tail: https://searchcode.com/codesearch/view/457515/ https://searchcode.c
by etaioinshrdlu 7y ago
For fun casual reading, try comparing the source code of any BSD utility vs. GNU.
BSD tail: https://searchcode.com/codesearch/view/457515/ https://searchcode.com/codesearch/view/457515/
GNU tail: https://github.com/coreutils/coreutils/blob/master/src/tail.c https://github.com/coreutils/coreutils/blob/master/src/tail....
Usually the BSD one is short and sweet and the GNU one is a bit complex.
GNU utilities may be high performance but they tend to be hard to understand.
- acuozzo 7y ago> but they tend to be hard to understand It's not just about performance. It's also about portability. GNU utilities are intended to work on various nixen rather than just GNU/Linux. I mean, hell, the GNU tail you link to includes an explicit workaround for odd select() behavior on AIX.