This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: "file name" vs "filename"

On 04/01/2018 02:56 PM, Joel Sherrill wrote:

On Sun, Apr 1, 2018, 3:16 PM Gerald Pfeifer < <>> wrote:

    And now to the most important question of all. ;-)  Should we use
    "file name" or "filename" when referring to the name of a file?

    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
       % grep "file name" $GCC/gcc/doc/*.texi | wc -l

    (Once we have consensus, I'll add that to codingconventions.html
    and start by making the web pages consistent.)

Searching and looking at online dictionaries, it  looks like filename is the currently preferred form.

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:

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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]