Dave Korn wrote:

>>>>> +# func_relative_path libdir bindir
> 
>>>> gnulib-tool has a function func_relativize.  Can we just reuse that
>>>> (and make it fast)?
> 
>> Sure.  However, if you want something that works with ../, then the
>> gnulib-tool code is worth looking at.  Just a suggestion, you know.

>  I'll write something to
> pre-condition the paths (i.e. remove '.' components and cancel out
> 'component/..' pairs, remove any doubled-up slashes and trim any trailing one)
> and make it a separate func, it might come in handy elsewhere.

  Re that, BTW: can I use shell array variables portably?  I'm guessing not,
but it would simplify the design slightly if there was a way.

    cheers,
      DaveK


Reply via email to