From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <41cff9c1e1818e4fa7638332331f9cc0@quintile.net> From: "Steve Simon" Date: Tue, 28 Oct 2008 10:04:57 +0000 To: 9fans@9fans.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] @{cd ...} breaks completion with ctrl-f/ins; help needed Topicbox-Message-UUID: 29bd1496-ead4-11e9-9d60-3106f5b1d025 > I issue > ; @{cd lib} > > then lc, pwd seems to be ok, lists/returns my home directory, This makes sense to me - though I am not saying its "correct". When you cd in interactive mode rc(1) writes the path to the directory into /dev/wdir. This informs rio of your current dir so it can do the filename completion (and also gives the directory context to the plumber). I guess the @{ } "execute in a subshell" code in rc could save and restore the current directory, however this is only an issue in interactive mode. I have never needed @{ } interactively so I have not had this problem. probably the best way to get things back in sync is: cd `{pwd} -Steve