1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-22 11:17:19 +00:00
freebsd/share
Jilles Tjoelker 9897c45f31 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.
2010-11-19 12:56:13 +00:00
..
colldef
dict Various changes from various sources: 2010-09-23 11:19:03 +00:00
doc Remove references to MAKEDEV(8) 2010-11-15 05:25:51 +00:00
examples Add Makefile entry to install two new example files. 2010-10-24 23:25:14 +00:00
info
man sh: Add printf builtin. 2010-11-19 12:56:13 +00:00
me
misc Add myself as a new committer and add zml as my mentor. 2010-11-10 18:37:03 +00:00
mk Re-enable generating links. 2010-11-16 22:23:20 +00:00
mklocale
monetdef
msgdef
numericdef
security
sendmail
skel
snmp
syscons
tabset
termcap mdoc: drop redundant .Pp and .LP calls 2010-10-08 12:40:16 +00:00
timedef
zoneinfo
Makefile
Makefile.inc