rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
From: Carlo Strozzi <carlos@texne.com>
To: rc@hawkwind.utcs.toronto.edu
Subject: Re: bug?
Date: Mon, 28 May 2001 05:55:08 -0500	[thread overview]
Message-ID: <20010528115508.G4481@tango.texne.com> (raw)
In-Reply-To: <20010528074702.4737.qmail@mailhost.aus.deuba.com>; from russell.davies@db.com on Mon, May 28, 2001 at 03:47:00AM -0500

On Mon, May 28, 2001 at 03:47:00AM -0500, Russell Davies 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
| /

I believe the '>' redirection causes cd to be executed in a subshell,
and when the latter dies so does the cd effect.

Carlo Strozzi
TeXne.COM - Open Consulting
Mail: carlos@texne.com  Voice: (+39)0523-883732  Fax: (+39)0523-840980

  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 ` Carlo Strozzi [this message]
2001-05-28 15:20 ` bug? Paul Haahr
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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010528115508.G4481@tango.texne.com \
    --to=carlos@texne.com \
    --cc=rc@hawkwind.utcs.toronto.edu \


* 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).