coreutils
[Top][All Lists]
Advanced

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

Re: [PATCH v2] ln: add the --relative option


From: Bernhard Voelker
Subject: Re: [PATCH v2] ln: add the --relative option
Date: Fri, 24 Feb 2012 13:57:14 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120208 Thunderbird/10.0.1

On 02/24/2012 12:11 PM, Pádraig Brady wrote:
> > > +  if (relative && !symbolic_link)
> > > +    {
> > > +        error (EXIT_FAILURE, 0,
> > > +               _("cannot do --relative without --symbolic"));
> > > +    }
>
> > 
> > Why restrict this to symlinks - it could also be useful for
> > hardlinks, right?
>
> Well hardlinks reference inodes and so are independent
> of any naming, whether relative or absolute etc.

Correct, but I think the whole point about --relative is this:
without that, the user has to think about how to get from
the link target to the link, while with --relative, [s]he
has to think from PWD to both names, i.e. one can use e.g.
bash-completion to get both path names.
And this would also be nice for hardlinks.

Have a nice day,
Berny



reply via email to

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