Date: Fri, 19 Nov 2010 12:56:13 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/bin/sh Makefile builtins.def sh.1 src/share/man/man1 builtin.1 src/usr.bin/printf printf.1 printf.c Message-ID: <201011191258.oAJCwACD031196@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jilles 2010-11-19 12:56:13 UTC FreeBSD src repository Modified files: bin/sh Makefile builtins.def sh.1 share/man/man1 builtin.1 usr.bin/printf printf.1 printf.c Log: SVN rev 215520 on 2010-11-19 12:56:13Z by jilles sh: Add printf builtin. This was removed in 2001 but I think it is appropriate to add it back: * I do not want to encourage people to write fragile and non-portable echo commands by making printf much slower than echo. * Recent versions of Autoconf use it a lot. * Almost no software still wants to support systems that do not have printf(1) at all. * In many other shells printf is already a builtin. Side effect: printf is now always the builtin version (which behaves identically to /usr/bin/printf) and cannot be overridden via PATH (except via the undocumented %builtin mechanism). Code size increases about 5K on i386. Embedded folks might want to replace /usr/bin/printf with a hard link to /usr/bin/alias. Revision Changes Path 1.54 +3 -2 src/bin/sh/Makefile 1.20 +1 -1 src/bin/sh/builtins.def 1.150 +5 -1 src/bin/sh/sh.1 1.34 +4 -1 src/share/man/man1/builtin.1 1.37 +10 -1 src/usr.bin/printf/printf.1 1.39 +24 -6 src/usr.bin/printf/printf.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011191258.oAJCwACD031196>