From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17111 invoked from network); 25 Aug 1999 16:16:37 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 25 Aug 1999 16:16:37 -0000 Received: (qmail 10389 invoked by alias); 25 Aug 1999 16:16:09 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2515 Received: (qmail 10382 invoked from network); 25 Aug 1999 16:16:09 -0000 Subject: Re: Perl like select()? In-Reply-To: <87so57dfpi.fsf@evermore.vicor-nb.com> from Josh Howard at "Aug 25, 1999 8:48: 9 am" To: jrh@vicor-nb.com (Josh Howard) Date: Wed, 25 Aug 1999 17:16:04 +0100 (BST) Cc: zsh-users@sunsite.auc.dk X-Mailer: ELM [version 2.4ME+ PL48 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: From: Zefram Josh Howard wrote: >Is there any way, in a script, to use a "Perl-like" select() to >associate stdout with a particular file, before the execution of the >rest of the script? exec > file permanently redirects stdout. Any redirection can be used this way. > For instance: I have a shell script that I want to >simply put ">log.file" at the top, and then start echo'ing and doing >various output and expect everything to go to log.file, Interestingly enough, that's the syntax I used for this operation when designing a new shell from scratch[1]. -zefram [1] The Elate shell. It's proprietary and doesn't run on Unix, so don't ask for it.