[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
re: Flaw in %readfrom and %writeto
>Yep, that's right. Don't most systems support /dev/fd these days,
>making the temp file kludge less necessary?
no. aix, for example.
>> I actually never understood why $pid does not change in a forked subshell,
>> but that's a different matter.
>So you can do things like
>
> { mumble > /tmp/poot.$pid } &
> rm /tmp/poot.$pid
>
>and have them work on the same file. Behavior inherited from /bin/sh.
why would you want that? if you really want that behavior,
then you can implement it by doing the floowing if subshells
change $pid
parentPid = $pid
{ mumble > /tmp/poot.$parentPid } &
rm /tmp/poot/$parentPid
i wrote my shell this way.