do not advertise printf(1)

This commit is contained in:
tg
2012-08-03 18:34:31 +00:00
parent 0decdb2100
commit 31ad60ea89

18
mksh.1
View File

@ -1,4 +1,4 @@
.\" $MirOS: src/bin/mksh/mksh.1,v 1.291 2012/07/30 21:37:13 tg Exp $ .\" $MirOS: src/bin/mksh/mksh.1,v 1.292 2012/08/03 18:34:31 tg Exp $
.\" $OpenBSD: ksh.1,v 1.144 2012/07/08 08:13:20 guenther Exp $ .\" $OpenBSD: ksh.1,v 1.144 2012/07/08 08:13:20 guenther Exp $
.\"- .\"-
.\" Copyright © 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, .\" Copyright © 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
@ -74,7 +74,7 @@
.\" with -mandoc, it might implement .Mx itself, but we want to .\" with -mandoc, it might implement .Mx itself, but we want to
.\" use our own definition. And .Dd must come *first*, always. .\" use our own definition. And .Dd must come *first*, always.
.\" .\"
.Dd $Mdocdate: July 30 2012 $ .Dd $Mdocdate: August 3 2012 $
.\" .\"
.\" Check which macro package we use, and do other -mdoc setup. .\" Check which macro package we use, and do other -mdoc setup.
.\" .\"
@ -2872,8 +2872,8 @@ regular commands
.Pp .Pp
.Ic \&[ , chdir , bind , cat , .Ic \&[ , chdir , bind , cat ,
.Ic echo , let , mknod , print , .Ic echo , let , mknod , print ,
.Ic printf , pwd , realpath , rename , .Ic pwd , realpath , rename , sleep ,
.Ic sleep , test , ulimit , whence .Ic test , ulimit , whence
.Pp .Pp
In the future, the additional In the future, the additional
.Nm .Nm
@ -3240,8 +3240,6 @@ defaults to 1.
.Em Warning: .Em Warning:
this utility is not portable; use the Korn shell builtin this utility is not portable; use the Korn shell builtin
.Ic print .Ic print
or the much slower POSIX utility
.Ic printf
instead. instead.
.Pp .Pp
Prints its arguments (separated by spaces) followed by a newline, to the Prints its arguments (separated by spaces) followed by a newline, to the
@ -3633,15 +3631,16 @@ option suppresses the trailing newline.
.Pp .Pp
.It Ic printf Ar format Op Ar arguments ... .It Ic printf Ar format Op Ar arguments ...
Formatted output. Formatted output.
Approximately the same as the utility Approximately the same as the
.Ic printf , .Xr printf 1 ,
except that it uses the same utility, except it uses the same
.Sx Backslash expansion .Sx Backslash expansion
and I/O code as the rest of and I/O code as the rest of
.Nm mksh . .Nm mksh .
This is not normally part of This is not normally part of
.Nm mksh ; .Nm mksh ;
however, distributors may have added this as builtin as a speed hack. however, distributors may have added this as builtin as a speed hack.
Do not use in new code.
.Pp .Pp
.It Ic pwd Op Fl LP .It Ic pwd Op Fl LP
Print the present working directory. Print the present working directory.
@ -6151,7 +6150,6 @@ contains the system and suid profile.
.Xr cat 1 , .Xr cat 1 ,
.Xr ed 1 , .Xr ed 1 ,
.Xr getopt 1 , .Xr getopt 1 ,
.Xr printf 1 ,
.Xr sed 1 , .Xr sed 1 ,
.Xr sh 1 , .Xr sh 1 ,
.Xr stty 1 , .Xr stty 1 ,