rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
From: Paul Haahr <haahr@yahoo.com>
To: Russell Davies <russell.davies@db.com>
Cc: rc@hawkwind.utcs.toronto.edu
Subject: Re: bug?
Date: Mon, 28 May 2001 10:20:12 -0500	[thread overview]
Message-ID: <20010528142013.80482.qmail@web10702.mail.yahoo.com> (raw)
In-Reply-To: <20010528074702.4737.qmail@mailhost.aus.deuba.com>

--- Russell Davies <russell.davies@db.com> wrote:
> 
> ; mkdir $HOME/e
> ; cdpath=$HOME
> ; cd /
> ; cd e
> /home/blah/e
> 
> ok, all is well. Suppose now I want to suppress the output of the cd
> e.
> 
> ; cd /
> ; cd e >/dev/null
> ; pwd
> /
> 
> huh? I haven't had time to dig too deeply but if someone else has
> looked at it before, I won't bother.

I don't have a Unix box in front of me to test or access to the source, but
rc commands with redirected I/O run in subshells;  thus, the directory of
your child process is changed, but not the parent process.

(I think we fixed that in es by remapping file descriptors all over the
place and forking way late in the game.)

--p

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/


  parent reply	other threads:[~2001-05-28 19:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-28  8:47 bug? Russell Davies
2001-05-28 10:55 ` bug? Carlo Strozzi
2001-05-28 15:20 ` Paul Haahr [this message]
2001-05-28 17:20 bug? Byron Rakitzis

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=20010528142013.80482.qmail@web10702.mail.yahoo.com \
    --to=haahr@yahoo.com \
    --cc=paul@paulhaahr.com \
    --cc=rc@hawkwind.utcs.toronto.edu \
    --cc=russell.davies@db.com \
    /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).