Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Aug 2001 07:10:01 -0700 (PDT)
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/29247: fmt should not expand tabs.
Message-ID:  <200108061410.f76EA1f28702@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/29247; it has been noted by GNATS.

From: Ruslan Ermilov <ru@FreeBSD.org>
To: Ian Dowse <iedowse@maths.tcd.ie>
Cc: bug-followup@FreeBSD.org
Subject: Re: bin/29247: fmt should not expand tabs.
Date: Mon, 6 Aug 2001 17:00:33 +0300

 On Mon, Aug 06, 2001 at 01:19:26PM +0100, Ian Dowse wrote:
 > In message <200108060940.f769e1671337@freefall.freebsd.org>, Ruslan Ermilov wri
 > tes:
 > > >
 > > The old fmt(1) did that too.  Could you please send me an example where
 > > the old fmt does do this for you?
 > 
 > Here's a quick example:
 > 
 > begin 644 fmttest
 > M"F8*"68@:"!H(&AH(&@@:"!H(&IH(&IH(&ML9R!H9VMH9VIK9R!K:F@@:"!K
 > M9V@@:V<@:VIH(&MJ9R!K:FAG(&MG:B!K:FAG(&MH9R!K:F=H(&MJ9R!K9R!K
 > A9V@@:V=H(&MG(&MH(&MG:"!K;&=H(`H)9@IF"@IF"@H*
 > `
 > end
 > 
 > --- fmttest.old	Mon Aug  6 13:16:39 2001
 > +++ fmttest.new	Mon Aug  6 13:16:43 2001
 > @@ -1,7 +1,8 @@
 >  
 >  f
 > -	f h h hh h h h jh jh klg hgkhgjkg kjh h kgh kg kjh kjg kjhg
 > -	kgj kjhg khg kjgh kjg kg kgh kgh kg kh kgh klgh f f
 > +        f h h hh h h h jh jh klg hgkhgjkg kjh h kgh kg kjh kjg kjhg
 > +        kgj kjhg khg kjgh kjg kg kgh kgh kg kh kgh klgh f
 > +f
 >  
 >  f
 > 
 Ah, that.  That could be achieved by `fmt -l 8'.  Don't take it wrong!
 fmt(1) always replaces spaces by tabs first.  The old fmt(1) then did
 what new `-l 8' currently does, unconditionally, i.e., replaces every
 8 leading spaces by a single tab character.
 
 > It also deals differently with the 'f' after the long line, but that's
 > probably unimportant.
 > 
 Yes, this is due to the:
 
 : -p      Allow indented paragraphs.  Without the -p flag, any change in
 :         the amount of whitespace at the start of a line results in a new
 :         paragraph being begun.
 
 
 Cheers,
 -- 
 Ruslan Ermilov		Oracle Developer/DBA,
 ru@sunbay.com		Sunbay Software AG,
 ru@FreeBSD.org		FreeBSD committer,
 +380.652.512.251	Simferopol, Ukraine
 
 http://www.FreeBSD.org	The Power To Serve
 http://www.oracle.com	Enabling The Information Age

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108061410.f76EA1f28702>