From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Tolpin Message-Id: <200403170907.i2H97psH083854@adat.davidashen.net> To: 9fans@cse.psu.edu Subject: Re: [9fans] Novice question - run as other In-Reply-To: <36fa252fff9f4cb8ae8642352754b58d@terzarima.net> Date: Wed, 17 Mar 2004 13:07:51 +0400 Topicbox-Message-UUID: 3302fa40-eacd-11e9-9e20-41e7f4b1d025 > >>My question was how to do the same from rc. > >>@{echo -n none > '#c/user' ; while() {sleep 1} } > >>succeeds but does not change the owner of the process. Why? > > aha! when that message arrived, i was just writing one to point out that you need to take > care that you stay in the same process as changes #c/user. in the case above, > it does indeed change for the process that writes to #c/user (ie, the echo -n none) > but of course that process ends, and the parent shell carries on to run > while() {...} > which happens in a different process from the echo! > Thank you for the comment. I really don't realize a simple thing. Will go and look into the source code of rc. I thought redirection would mean I would modify rc's #c/user. I don't understand something basic. Thanks again