[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: realpath options
From: |
Jim Meyering |
Subject: |
Re: realpath options |
Date: |
Tue, 03 Jan 2012 11:29:51 +0100 |
Pádraig Brady wrote:
> On 01/03/2012 12:30 AM, Bruno Haible wrote:
>> Pádraig Brady wrote:
>>> To me realpath is conceptually (cd; pwd), so I used
>>> the -L and -P options as defined by POSIX for cd.
>>
>> Makes good sense, yes.
>>
>>> I considered using --no-dereference, but while the symlinks
>>> in a path are not expanded, they are dereferenced unless -m is specified.
>>
>> Indeed, good point.
>>
>> How about '--no-symlinks'?
>>
>>> --strip was used to be compatible with the util already in Debian.
>>
>> In that case, I would add both '--no-symlinks' and '--strip' as
>> synonyms, and mark the latter as deprecated about one year after
>> Debian has dropped its own, earlier 'realpath' program.
>>
>> You are the "upstream" compared to Debian. Moving things upstream
>> requires some cleanups sometimes. If such cleanups don't happen,
>> the ill-chosen names of the first implementation stuck forever.
>
> Completely agreed.
> It's much better to debate/decide naming now, rather than later.
>
> Thanks for the name suggestion (which maps nicely to
> the canonicalize_filename_mode(), NO_LINKS option).
Good.
Please add a comment something like this near the --strip option:
/* FIXME: deprecate in 2013 or so */