bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
* Re: compromise for case-challenged file systems?
       [not found] ` <55586584.5050101@draigBrady.com>
@ 2015-05-18 12:18   ` Eric Blake
  0 siblings, 0 replies; only message in thread
From: Eric Blake @ 2015-05-18 12:18 UTC (permalink / raw
  To: Pádraig Brady, Jim Meyering, Coreutils, Bug-gnulib

[-- Attachment #1: Type: text/plain, Size: 1575 bytes --]

[adding gnulib]

On 05/17/2015 03:55 AM, Pádraig Brady wrote:
> On 17/05/15 00:34, Jim Meyering wrote:
>> I noticed that since the addition of the file,
>> tests/tail-2/F-vs-rename.sh, one can no longer
>> clone coreutils onto a case-challenged file system,
>> because there is also a file in that directory whose
>> name differs only in the case of the "f":
>>
>>   tests/tail-2/f-vs-rename.sh
>>
>> What do you think about fixing this?
>> Since it's easy to avoid, you may want to write a
>> syntax-check rule using something like this:
>>
>>   $ git ls-files|tr '[:upper:]' '[:lower:]'|sort|uniq -d
>>   tests/tail-2/f-vs-rename.sh
>>
>> Actual consequence?
>> When I clone onto an hfs file system (OS/X), the initial
>> is shown as unclean, with tests/tail-2/F-vs-rename.sh
>> being shown as modified (with the differences to transform
>> it to the contents of the lower-case-named file).
> 
> Yes it's definitely worth avoiding that issue.
> Proposed patch attached.

In fact, I think such a patch would be good in gnulib's maint.mk for all
projects to benefit from, and that it could additionally check for other
problematic characters such as ':' which cannot be cloned onto FAT
systems, or even that file names within the project do not exceed the
99-byte limit of older tar archive constraints.  That is, ensuring that
all file names within a project are portable is a good goal for making
the project more accessible.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-05-18 12:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CA+8g5KH7kBnf4C=Fx92OX1fHMutu+qrd48Q3phLKYohzPM+X9A@mail.gmail.com>
     [not found] ` <55586584.5050101@draigBrady.com>
2015-05-18 12:18   ` compromise for case-challenged file systems? Eric Blake

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).