9fans archive / 2008 / 10 / 420 / prev next
From: "Russ Cox" <rsc@swt...>
Subject: Re: [9fans] @{cd ...} breaks completion with ctrl-f/ins; help needed
Date: Tue, 28 Oct 2008 10:21:33 -0700
> As I wrote in my initial mail, 'cd .' does not help.
pwd >/dev/wdir
cd . works for fixing acme's tag (if your cd runs awd)
but not for fixing /dev/wdir, because rc just writes the
argument to cd uninterpreted into /dev/wdir, and
/dev/wdir interprets paths relative to the current wdir setting.
It's a hard problem in general, since the shell has
no idea whether the program that just ran changed
/dev/wdir. The only way to keep it in sync would
be to force the shell to write into /dev/wdir after
every command completed, which would be overkill.
Russ