NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/57252: wc



The following reply was made to PR bin/57252; it has been noted by GNATS.

From: Marc Daniel Fege <marc%fege.net@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: bin/57252: wc
Date: Thu, 02 Mar 2023 10:17:38 +0100

 Hi Joerg,
 
 that was very quick reply. Thank! I should have been more precise with that=
 =20
 example.
 
 	cat /etc/hosts | wc -w
 
 produces a more clean output what I mean. I just saw after I checked the=20
 output with an editor that there are just plain space characters and no tab=
 s=20
 and also adds unneccessary empty spaces in advance of that output. Kind of=
 =20
 odd.
 
 Sincerely
 Marc.
 
 Am Donnerstag, 2. M=E4rz 2023, 10:10:02 CET schrieben Sie:
 > The following reply was made to PR bin/57252; it has been noted by GNATS.
 >=20
 > From: Joerg Sonnenberger <joerg%bec.de@localhost>
 > To: gnats-bugs%netbsd.org@localhost
 > Cc: gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost
 > Subject: Re: bin/57252: wc
 > Date: Thu, 2 Mar 2023 10:05:27 +0100
 >=20
 >  Am Thu, Mar 02, 2023 at 08:05:00AM +0000 schrieb marc%fege.net@localhost:
 >  > the "wc" command does not behave as POSIX demands:
 >  > POSIX requires the outputted figures to be tabbed by the actual
 >  > horizontal tab character.
 >  [CITATION NEEDED]
 >=20
 >  > For example:
 >  > $ wc /etc/hosts
 >=20
 >  With GNU coretuils I get:
 >=20
 >  wc /etc/hosts | hexdump
 >  0000000 3220 2037 3820 2037 3138 2033 652f 6374
 >  0000010 682f 736f 7374 000a
 >  0000017
 >=20
 >  ...so no clearly, no tab in use.
 >=20
 >  Joerg
 
 



Home | Main Index | Thread Index | Old Index