From: Gerald Pfeifer <gerald@pfeifer.com>
To: Sandra Loosemore <sandra@codesourcery.com>,
Joseph Myers <joseph@codesourcery.com>
Cc: Joel Sherrill <joel@rtems.org>, gcc@gcc.gnu.org
Subject: Re: "file name" vs "filename"
Date: Sat, 15 Apr 2023 00:00:44 +0200 (CEST) [thread overview]
Message-ID: <a5c24fd7-515a-9465-5558-e59005c68271@pfeifer.com> (raw)
In-Reply-To: <alpine.DEB.2.20.1804021210580.14431@digraph.polyomino.org.uk>
[-- Attachment #1: Type: text/plain, Size: 1881 bytes --]
On Sun, 1 Apr 2018, Sandra Loosemore wrote:
>> Our docs currently are about even and I think it would be good to
>> settle on one?
>>
>> % grep "filename" $GCC/gcc/doc/*.texi | wc -l
>> 92
>> % grep "file name" $GCC/gcc/doc/*.texi | wc -l
>> 103
>>
>> (Once we have consensus, I'll add that to codingconventions.html
>> and start by making the web pages consistent.)
>>
> The C and C++ standards documents use "file name"; there are other places
> ("bit-field") where the GCC manual has adopted the C standard terminology.
>
> In this case it might be more appropriate to adopt the POSIX conventions,
> since I suspect most of the uses in the GCC documentation refer to the host
> environment rather than the target language. This looks like the POSIX
> glossary:
>
> http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html
>
> Here "filename" is given as the correct spelling, except that that glossary
> distinguishes between "filename" and "pathname" (a "filename" is the same as a
> "pathname component"). So perhaps many of the "file name"/"filename" uses in
> the GCC manual ought to be "pathname" instead?
On Mon, 2 Apr 2018, Joseph Myers wrote:
> See the GNU Coding Standards:
>
> Please do not use the term ``pathname'' that is used in Unix
> documentation; use ``file name'' (two words) instead. We use the term
> ``path'' only for search paths, which are lists of directory names.
Based on this it appears "file name" is the one to follow, so I went ahead
and documented this at https://gcc.gnu.org/codingconventions.html with a
patch at https://gcc.gnu.org/pipermail/gcc-cvs-wwwdocs/2023/010210.html .
Should we strive to use pathname (or path name) more broadly as Sandra
wondered? I'm a bit hesitant...
My next step is updating wwwdocs to consistently use "file name.
Thoughts?
Gerald
next prev parent reply other threads:[~2023-04-14 22:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-01 20:16 Gerald Pfeifer
2018-04-01 20:56 ` Joel Sherrill
2018-04-01 22:55 ` Sandra Loosemore
2018-04-03 23:06 ` Martin Sebor
2018-04-02 12:11 ` Joseph Myers
2018-04-08 15:18 ` Vincent Lefevre
2023-04-14 22:00 ` Gerald Pfeifer [this message]
2023-04-17 18:51 ` James K. Lowden
2023-04-18 11:55 ` Richard Kenner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a5c24fd7-515a-9465-5558-e59005c68271@pfeifer.com \
--to=gerald@pfeifer.com \
--cc=gcc@gcc.gnu.org \
--cc=joel@rtems.org \
--cc=joseph@codesourcery.com \
--cc=sandra@codesourcery.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).