Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Converting absolut symlinks to relative ones...?



On Sun, Mar 6, 2016 at 3:21 PM, Danek Duvall <duvall@xxxxxxxxxxxxxx> wrote:
> On Sun, Mar 06, 2016 at 11:38:30AM -0800, Bart Schaefer wrote:
>
>> On Mar 6,  9:39am, Danek Duvall wrote:
>> }
>> } GNU ln has a -r option which does this.
>>
>> That must be a very recent addition, there's no sign of it in coreutils
>> 8.13 from 2011 (on my Ubuntu box).
>
> Looks like it arrived in 8.16, in March 2012.
>
>> ln-r () {
>> ...
>
> Might be a useful addition to the ln in zsh/files, too.
>
> Danek

I don't know what is needed, but attached is the function I use to
calculate a relative path.

Attachment: relative
Description: Binary data



Messages sorted by: Reverse Date, Date, Thread, Author