printf.1 (222421) | printf.1 (233648) |
---|---|
1.\" Copyright (c) 1989, 1990, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" the Institute of Electrical and Electronics Engineers, Inc. 6.\" 7.\" Redistribution and use in source and binary forms, with or without 8.\" modification, are permitted provided that the following conditions --- 15 unchanged lines hidden (view full) --- 24.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" SUCH DAMAGE. 30.\" 31.\" @(#)printf.1 8.1 (Berkeley) 6/6/93 | 1.\" Copyright (c) 1989, 1990, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" the Institute of Electrical and Electronics Engineers, Inc. 6.\" 7.\" Redistribution and use in source and binary forms, with or without 8.\" modification, are permitted provided that the following conditions --- 15 unchanged lines hidden (view full) --- 24.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" SUCH DAMAGE. 30.\" 31.\" @(#)printf.1 8.1 (Berkeley) 6/6/93 |
32.\" $FreeBSD: head/usr.bin/printf/printf.1 222421 2011-05-28 14:32:47Z jilles $ | 32.\" $FreeBSD: head/usr.bin/printf/printf.1 233648 2012-03-29 05:02:12Z eadler $ |
33.\" 34.Dd May 28, 2011 35.Dt PRINTF 1 36.Os 37.Sh NAME 38.Nm printf 39.Nd formatted output 40.Sh SYNOPSIS --- 298 unchanged lines hidden (view full) --- 339.Sh CAVEATS 340.Tn ANSI 341hexadecimal character constants were deliberately not provided. 342.Pp 343Trying to print a dash ("-") as the first character causes 344.Nm 345to interpret the dash as a program argument. 346.Nm -- | 33.\" 34.Dd May 28, 2011 35.Dt PRINTF 1 36.Os 37.Sh NAME 38.Nm printf 39.Nd formatted output 40.Sh SYNOPSIS --- 298 unchanged lines hidden (view full) --- 339.Sh CAVEATS 340.Tn ANSI 341hexadecimal character constants were deliberately not provided. 342.Pp 343Trying to print a dash ("-") as the first character causes 344.Nm 345to interpret the dash as a program argument. 346.Nm -- |
347must be used before | 347must be used before |
348.Ar format . 349.Pp 350If the locale contains multibyte characters 351(such as UTF-8), 352the 353.Cm c 354format and 355.Cm b --- 24 unchanged lines hidden --- | 348.Ar format . 349.Pp 350If the locale contains multibyte characters 351(such as UTF-8), 352the 353.Cm c 354format and 355.Cm b --- 24 unchanged lines hidden --- |