[Top][All Lists]

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

Re: [PATCH] fts: reduce two or more trailing spaces to just one, usually

From: Eric Blake
Subject: Re: [PATCH] fts: reduce two or more trailing spaces to just one, usually
Date: Thu, 01 Nov 2012 06:22:32 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121016 Thunderbird/16.0.1

On 10/31/2012 05:28 PM, Dmitry V. Levin wrote:
> On Tue, Sep 04, 2012 at 01:09:24PM +0200, Jim Meyering wrote:
> [...]
>> Here's the revised commit:

>> Subject: [PATCH] fts: reduce two or more trailing slashes to just one,
>>  usually
>> * lib/fts.c (fts_open): Upon initialization, if a name ends in two
>> or more slashes, trim all but the final one.  But if a name consists
>> solely of two slashes, don't modify it.  If it consists solely of
>> three or more slashes, strip all but one.

> JFYI, a side effect of this commit is that find(1) output changed:
> before$ find /// -prune
> ///
> after$ find /// -prune
> /

POSIX requires find to output the user's slashes unchanged, so we have
caused a regression in find, and need to update find to counteract the

> Found by find/testsuite/find.gnu/name-slash.exp, I'm not sure
> whether find or its test suite has to be updated.

Eric Blake   address@hidden    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

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