> in this case the first construct would do an open and the
> result may be 4 or 104 but "?1" will know.  and then it's over,
> as dup() is good for the rest.  it handles nesting and sequencing
> if you think about it.

You really only need a /dev/fd/clone operation, don't you?
Simplistically:

        fd=`cat /dev/fd/clone`
        <>[$fd]/net/dns { echo google.com ip >[1=$fd]; cat <[0=$fd] }
        
Add syntactic sugar to taste.

++L

Reply via email to