[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fix 'dirname' and 'basename' on MS-Windows
From: |
Eli Zaretskii |
Subject: |
Re: Fix 'dirname' and 'basename' on MS-Windows |
Date: |
Wed, 09 Jul 2014 19:49:31 +0300 |
> Date: Wed, 9 Jul 2014 09:16:35 -0600 (MDT)
> From: "Nelson H. F. Beebe" <address@hidden>
> Cc: address@hidden
>
> >> 6. If the suffix operand is present, is not identical to the
> >> characters remaining in string, and is identical to a suffix of the
> >> characters remaining in string, the suffix suffix shall be removed
> >> from string. Otherwise, string is not modified by this step. It
> >> shall not be considered an error if suffix is not found in string.
> >> ...
>
> The phrase `is not identical to the characters remaining in string'
> means that ".bar" is the result, rather than "".
Any idea why does this exception make sense?
> Also, in guile documentation, would it not be better to replace "file
> name", "base name", FILENAME, and BASENAME with the standard POSIX
> terminology "pathname" and "filename"?
GNU Coding Standards frown upon using "path" for anything that is not
a PATH-style directory list. In GNU terminology, "filename" can be
both full (a.k.a. "absolute") and relative file names.