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: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: marc%fege.net@localhost
Subject: Re: bin/57252: wc
Date: Thu, 2 Mar 2023 13:12:10 +0100

 One could argue to use a different format without the width specifier
 if only a single datum is requested, like:
 
 	const char *wcformat = WCFMT_WITH_SPACES;
 	if (doline + doword + dobyte + dochar + dolongest == 1)
 		wcformat = WCFMT_NO_SPACES;
 
 
 Martin
 


Home | Main Index | Thread Index | Old Index