From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17224 invoked from network); 25 Aug 1999 16:26:41 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 25 Aug 1999 16:26:41 -0000 Received: (qmail 11958 invoked by alias); 25 Aug 1999 16:26:24 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2516 Received: (qmail 11951 invoked from network); 25 Aug 1999 16:26:24 -0000 Message-Id: <199908251626.MAA09495@betelgeuse.ccs.neu.edu> To: Josh Howard cc: zsh-users@sunsite.auc.dk Subject: Re: Perl like select()? From: Jay Sekora Organization: Northeastern University CCS Systems Group Date: Wed, 25 Aug 1999 12:26:17 -0400 Sender: jay@ccs.neu.edu > 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, as opposed to > doing something like "./script.sh >> log.file" In the Bourne shell, you use "exec" with redirection and no command, thusly: #!/bin/zsh exec > /tmp/foo echo this is a test And empirically, this works in zsh as well (3.0.5), although the section on "exec" in zshmisc(1) doesn't seem to imply that it should. -j.