> On the otherhand, putting any command in the chain makes the behavior > disappear. > > cpu% @{rfork e; echo hi} |cat > /env/hi cpu% cat /env/hi hi > > My question is, is this intensional? It feels as if there is a > leakage here of the rfork when its effect is felt beyond the braces, > and it feels odd for the two fs interfaces to behave differently (even > though one of them is special) >
When the subshell executes the rfork, how is it to know that the /env is "outside of the braces"? Another way of asking it is: if I have a program with an open file descriptor in /env and calls rfork RFENVG what should happen with its /env? That program is the shell and any command it executes that inherits the file descriptor. G.