From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14535 invoked from network); 18 Oct 2001 04:49:38 -0000 Received: from unknown (HELO sunsite.dk) (130.225.247.90) by ns1.primenet.com.au with SMTP; 18 Oct 2001 04:49:38 -0000 Received: (qmail 24600 invoked by alias); 18 Oct 2001 04:48:27 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4391 Received: (qmail 24589 invoked from network); 18 Oct 2001 04:48:26 -0000 Date: Thu, 18 Oct 2001 00:46:59 -0400 From: Sweth Chandramouli To: zsh-users@sunsite.dk Subject: Re: Problem with zip completion Message-ID: <20011018004659.A13346@astaroth.sweth.net> Mail-Followup-To: zsh-users@sunsite.dk References: <20011017164751.A6245@greux.loria.fr> <20011017111333.A32235@dman.com> <20011017182121.A6958@greux.loria.fr> <1011017164932.ZM4674@candle.brasslantern.com> <20011017191154.B17322@greux.loria.fr> <1011017172404.ZM4733@candle.brasslantern.com> <1011017174447.ZM4784@candle.brasslantern.com> <20011018011512.C17952@greux.loria.fr> <011017175757.ZM5134@candle.brasslantern.com> <20011018041354.A18565@greux.loria.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011018041354.A18565@greux.loria.fr> On Thu, Oct 18, 2001 at 04:13:55AM +0200, Vincent Lefevre wrote: > On Wed, Oct 17, 2001 at 17:57:57 -0700, Bart Schaefer wrote: > > My assumption would be that if stdout is redirected, then the child that's > > exiting must not be a child of the top-level interactive shell, and thus > > changing the terminal title would at best be a waste of effort. > > Well, maybe. I thought that stdout (of the top-level shell) could be > temporarily redirected with some obscure builtins I didn't know. No need for obscure builtins; standard redirection can always be applied to the current shell via exec: $ exec > /tmp/file $ ls $ exec > /dev/tty $ ls file1 file2 file3 $ cat /tmp/file file1 file2 file3 . I'm not sure why you'd want to do that in an interactive shell, though. -- Sweth. -- Sweth Chandramouli ; President, Idiopathic Systems Consulting