From owner-cvs-src-old@FreeBSD.ORG Fri Nov 19 12:58:10 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A3EBA106566B for ; Fri, 19 Nov 2010 12:58:10 +0000 (UTC) (envelope-from jilles@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 90CEF8FC1F for ; Fri, 19 Nov 2010 12:58:10 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id oAJCwAtK031197 for ; Fri, 19 Nov 2010 12:58:10 GMT (envelope-from jilles@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id oAJCwACD031196 for cvs-src-old@freebsd.org; Fri, 19 Nov 2010 12:58:10 GMT (envelope-from jilles@repoman.freebsd.org) Message-Id: <201011191258.oAJCwACD031196@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jilles@repoman.freebsd.org using -f From: Jilles Tjoelker Date: Fri, 19 Nov 2010 12:56:13 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD 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 X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Nov 2010 12:58:10 -0000 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