From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 28 Oct 2008 14:17:04 -0700 From: Lyndon Nerenberg To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> In-Reply-To: Message-ID: References: <41cff9c1e1818e4fa7638332331f9cc0@quintile.net> User-Agent: Alpine 2.00 (WNT 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: [9fans] @{cd ...} breaks completion with ctrl-f/ins; help needed Topicbox-Message-UUID: 2a41063e-ead4-11e9-9d60-3106f5b1d025 > This saving&restoring seems flawed to me due to possible race-conditions... > I'd expect each shell had its own copy of /dev/wdir... But I may be > easily wrong... When a rc forks a subshell the child shares the namespace with the parent. If you want the child rc to divorce its namespace from the parent, have it issue 'rfork n'. There is no race condition; this is documented behaviour. You need to (re-)read the namespaces paper in /sys/doc/names.ps. --lyndon