9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Steve Simon" <steve@quintile.net>
To: 9fans@9fans.net
Subject: Re: [9fans] @{cd ...} breaks completion with ctrl-f/ins; help needed
Date: Tue, 28 Oct 2008 10:04:57 +0000	[thread overview]
Message-ID: <41cff9c1e1818e4fa7638332331f9cc0@quintile.net> (raw)
In-Reply-To: <a560a5d00810280242y5265c81er17bb4cd5b3bf11e3@mail.gmail.com>

> 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



  reply	other threads:[~2008-10-28 10:04 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 [this message]
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
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=41cff9c1e1818e4fa7638332331f9cc0@quintile.net \
    --to=steve@quintile.net \
    --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).