From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from web10702.mail.yahoo.com ([216.136.130.210]) by hawkwind.utcs.utoronto.ca with SMTP id <45258>; Mon, 28 May 2001 14:49:04 -0500 Message-ID: <20010528142013.80482.qmail@web10702.mail.yahoo.com> Received: from [206.170.1.4] by web10702.mail.yahoo.com; Mon, 28 May 2001 07:20:12 PDT Date: Mon, 28 May 2001 10:20:12 -0500 From: Paul Haahr Reply-To: paul@paulhaahr.com Subject: Re: bug? To: Russell Davies Cc: rc@hawkwind.utcs.toronto.edu In-Reply-To: <20010528074702.4737.qmail@mailhost.aus.deuba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii --- 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 > / > > 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/