From: "Russ Cox" <rsc@swtch.com>
To: "Fans of the OS Plan 9 from Bell Labs" <9fans@9fans.net>
Subject: Re: [9fans] @{cd ...} breaks completion with ctrl-f/ins; help needed
Date: Tue, 28 Oct 2008 10:21:33 -0700 [thread overview]
Message-ID: <dd6fe68a0810281021w70368212h8c87b1a6677d0f8a@mail.gmail.com> (raw)
In-Reply-To: <a560a5d00810280927x47c33d0dpa65d2debdbc58f02@mail.gmail.com>
> 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
next prev parent reply other threads:[~2008-10-28 17:21 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-28 9:42 Rudolf Sykora
2008-10-28 10:04 ` Steve Simon
2008-10-28 15:14 ` Rudolf Sykora
2008-10-28 15:30 ` Rob Pike
2008-10-28 16:27 ` Rudolf Sykora
2008-10-28 17:16 ` andrey mirtchovski
2008-10-28 17:26 ` andrey mirtchovski
2008-10-28 17:21 ` Russ Cox [this message]
2008-10-28 21:17 ` Lyndon Nerenberg
2008-10-28 21:41 ` Rudolf Sykora
2008-10-28 22:24 ` Lyndon Nerenberg
2008-10-28 10:54 ` matt
2008-10-28 15:15 ` Rudolf Sykora
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=dd6fe68a0810281021w70368212h8c87b1a6677d0f8a@mail.gmail.com \
--to=rsc@swtch.com \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).