From f2c6081c3a8e31d42e6a5147cafcdd7b5defcf47 Mon Sep 17 00:00:00 2001 From: jilles Date: Mon, 29 Jul 2019 20:43:07 +0000 Subject: [PATCH] printf(1): Note that \c only works in %b strings PR: 238313 Reported by: Andras Farkas MFC after: 1 week --- usr.bin/printf/printf.1 | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/usr.bin/printf/printf.1 b/usr.bin/printf/printf.1 index 4a052e429fc7..dfc3a718ae02 100644 --- a/usr.bin/printf/printf.1 +++ b/usr.bin/printf/printf.1 @@ -31,7 +31,7 @@ .\" @(#)printf.1 8.1 (Berkeley) 6/6/93 .\" $FreeBSD$ .\" -.Dd April 21, 2014 +.Dd July 29, 2019 .Dt PRINTF 1 .Os .Sh NAME @@ -87,8 +87,6 @@ are as follows: Write a character. .It Cm \eb Write a character. -.It Cm \ec -Ignore remaining characters in this string. .It Cm \ef Write a character. .It Cm \en @@ -289,7 +287,12 @@ The permitted escape sequences are slightly different in that octal escapes are .Cm \e0 Ns Ar num instead of -.Cm \e Ns Ar num . +.Cm \e Ns Ar num +and that an additional escape sequence +.Cm \ec +stops further output from this +.Nm +invocation. .It Cm n$ Allows reordering of the output according to .Ar argument .