groff
[Top][All Lists]
Advanced

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

Re: GNU Coding Standards for progname:file:line. (Was: Font path issue)


From: Alejandro Colomar
Subject: Re: GNU Coding Standards for progname:file:line. (Was: Font path issue)
Date: Mon, 22 Aug 2022 20:18:38 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.1.2

Hi Ralph, Branden,

On 8/22/22 10:04, Ralph Corderoy wrote:
Hi Branden,

(B) I see a deviation from the GNU Coding Standards for diagnostic
     messages; we don't need a space after "troff:" when it's followed
     by a file name.

It seems much of the word doesn't comply

     $ sed -f /etc/passwd
     sed: file /etc/passwd line 3: extra characters after command
     $
     $ awk -f /etc/passwd |& 3q
     awk: /etc/passwd:1: root:x:0:0:root:/root:/bin/bash
     awk: /etc/passwd:1:     ^ syntax error
     awk: /etc/passwd:2: bin:x:1:1:bin:/bin:/usr/bin/nologin
     $ pacman -Qo /usr/bin/awk
     /usr/bin/awk is owned by gawk 4.2.1-2
     $
     $ perl /etc/passwd |& 3q
     syntax error at /etc/passwd line 1, near "0:"
     Unknown regexp modifier "/b" at /etc/passwd line 1, at end of line
     Unknown regexp modifier "/b" at /etc/passwd line 1, at end of line
     $


Also, I'd keep the space, even if only for being able to use standard tools like perror(3), or common tools like the <err.h> functions.

Cheers,

Alex
--
Alejandro Colomar
<http://www.alejandro-colomar.es/>

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]