2012/10/26 Cedric Blancher <[email protected]>:
> 2012/10/25 Dan Douglas <[email protected]>:
>> On Thursday, October 25, 2012 08:12:07 PM Lionel Cons wrote:
>>> On 25 October 2012 13:50, Dan Douglas <[email protected]> wrote:
>>> > In ksh93v there's now a syntax to get readlink functionality out of tilde
>>> > expansion.
>>> >
>>> >   $ ( { echo ~{x}; } <<<'' {x}<&0 <&2 )
>>> > /proc/32185/fd/13
>>> >
>>> > This is an awesome feature... it would be a shame to require an eval here.
>>>
>>> This isn't readlink support. It's a a smart solution to allow child
>>> processes to access the shell's inherited file descriptors. We already
>>> heavily rely on this feature, both for IPC and to shorten very long
>>> paths to speed processing up.
>>>
>>> Lionel
>>
>> Ah I see. It is a nice idea. :)
>
> Yes, it's an ingenious solution to the problem of long paths. You pass
> a dir fd in which acts as virtual "/" and all paths are appended to
> it. Using /proc/.../fd instead of /megalong/path/ is MUCH faster and
> easier.

Yes, we like this feature, too. At first it was a bit 'getting used
to' but if you imagine that each fd works - as Cedric stated - a
virtual root then script hackers will quickly understand the power of
this feature. Suddenly you can have as many cwds as you wish and
that's worth $$$$.

Irek
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to