From owner-svn-src-all@freebsd.org Thu Oct 29 18:47:38 2020 Return-Path: Delivered-To: svn-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9DF3D45AC97 for ; Thu, 29 Oct 2020 18:47:38 +0000 (UTC) (envelope-from xtouqh@icloud.com) Received: from st43p00im-zteg10062001.me.com (st43p00im-zteg10062001.me.com [17.58.63.166]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4CMZF55Whtz4BnW for ; Thu, 29 Oct 2020 18:47:37 +0000 (UTC) (envelope-from xtouqh@icloud.com) Received: from [192.168.1.6] (unknown [91.240.124.157]) by st43p00im-zteg10062001.me.com (Postfix) with ESMTPSA id D39486C096F; Thu, 29 Oct 2020 18:47:28 +0000 (UTC) Subject: Re: svn commit: r367142 - head/usr.bin/fmt To: =?UTF-8?Q?Fernando_Apestegu=c3=ada?= , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <202010291837.09TIbKap040707@repo.freebsd.org> From: xtouqh@icloud.com Message-ID: <5bc7ce7a-c5d4-21e5-7a7c-e381e66b2b2f@icloud.com> Date: Thu, 29 Oct 2020 21:47:27 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <202010291837.09TIbKap040707@repo.freebsd.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312, 18.0.737 definitions=2020-10-29_11:2020-10-29, 2020-10-29 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2006250000 definitions=main-2010290129 X-Rspamd-Queue-Id: 4CMZF55Whtz4BnW X-Spamd-Bar: ------- X-Spamd-Result: default: False [-7.72 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[icloud.com]; R_SPF_ALLOW(-0.20)[+ip4:17.58.0.0/16]; DKIM_TRACE(0.00)[icloud.com:+]; DMARC_POLICY_ALLOW(-0.50)[icloud.com,quarantine]; NEURAL_HAM_SHORT(-0.74)[-0.739]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[icloud.com]; ASN(0.00)[asn:714, ipnet:17.58.63.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.98)[-0.978]; R_DKIM_ALLOW(-0.20)[icloud.com:s=1a1hai]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_LONG(-1.01)[-1.006]; MIME_GOOD(-0.10)[text/plain]; DWL_DNSWL_LOW(-1.00)[icloud.com:dkim]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_NO_DN(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[17.58.63.166:from]; WHITELIST_SPF_DKIM(-3.00)[icloud.com:d:+,icloud.com:s:+]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[svn-src-all] X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Oct 2020 18:47:38 -0000 Fernando ApesteguĂ­a wrote: > Author: fernape (ports committer) > Date: Thu Oct 29 18:37:20 2020 > New Revision: 367142 > URL: https://svnweb.freebsd.org/changeset/base/367142 > > Log: > fmt(1): Add EXAMPLES section > > Very small EXAMPLES section. > > While here, remove reference to nroff(1). > > Approved by: manpages (bcr@) > Differential Revision: https://reviews.freebsd.org/D26947 > > Modified: > head/usr.bin/fmt/fmt.1 > > Modified: head/usr.bin/fmt/fmt.1 > ============================================================================== > --- head/usr.bin/fmt/fmt.1 Thu Oct 29 18:34:47 2020 (r367141) > +++ head/usr.bin/fmt/fmt.1 Thu Oct 29 18:37:20 2020 (r367142) > @@ -30,7 +30,7 @@ > .\" > .\" Modified by Gareth McCaughan to describe the new version of `fmt' > .\" rather than the old one. > -.Dd December 1, 2017 > +.Dd October 29, 2020 > .Dt FMT 1 > .Os > .Sh NAME > @@ -89,10 +89,6 @@ Try to format mail header lines contained in the input > Format lines beginning with a > .Ql \&. > (dot) character. > -Normally, > -.Nm > -does not fill these lines, for compatibility with > -.Xr nroff 1 . Was the behavior of fmt(1) really changed? If not, you could just replace ".Xr nroff 1 ." with ".Nm nroff . ". > .It Fl p > Allow indented paragraphs. > Without the > @@ -159,10 +155,23 @@ environment variables affect the execution of > .Nm > as described in > .Xr environ 7 . > +.Sh EXAMPLES > +Center the text in standard input: > +.Bd -literal -offset indent > +$ echo -e 'The merit of all things\enlies\enin their difficulty' | fmt -c > + The merit of all things > + lies > + in their difficulty > +.Ed > +.Pp > +Format the text in standard input collapsing spaces: > +.Bd -literal -offset indent > +$ echo -e 'Multiple spaces will be collapsed' | fmt -s > +Multiple spaces will be collapsed > +.Ed > .Sh SEE ALSO > .Xr fold 1 , > -.Xr mail 1 , > -.Xr nroff 1 > +.Xr mail 1 > .Sh HISTORY > The > .Nm