dragonfly-bsd

Bloated echo command

做~自己de王妃 提交于 2019-12-18 11:57:25
问题 Look at the following implementations of the "echo" command: http://bxr.su/o/bin/echo/echo.c (OpenBSD) http://bxr.su/d/bin/echo/echo.c (DragonFly) http://bxr.su/n/bin/echo/echo.c (NetBSD) http://bxr.su/f/bin/echo/echo.c (FreeBSD) http://git.savannah.gnu.org/cgit/coreutils.git/tree/src/echo.c (GNU) As you go down the list, I'm sure you'll notice the increasing bloat in each implementation. What is the point of a 272 line echo program? 回答1: In their article 'Program Design in the UNIX