coreutils
[Top][All Lists]
Advanced

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

Re: realpath options


From: Pádraig Brady
Subject: Re: realpath options
Date: Tue, 03 Jan 2012 08:57:51 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110816 Thunderbird/6.0

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

cheers,
Pádraig.



reply via email to

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