From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13623 invoked from network); 9 Jun 1999 21:29:01 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 9 Jun 1999 21:29:01 -0000 Received: (qmail 21681 invoked by alias); 9 Jun 1999 21:28:45 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2375 Received: (qmail 21673 invoked from network); 9 Jun 1999 21:28:44 -0000 Date: Wed, 9 Jun 1999 17:29:16 -0400 From: Sweth Chandramouli To: ZSH Users Subject: Re: tee-like file redirection in shell? Message-ID: <19990609172916.A17470@astaroth.nit.gwu.edu> Mail-Followup-To: ZSH Users References: <19990609094032.A15964@astaroth.nit.gwu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95i In-Reply-To: On Wed, Jun 09, 1999 at 08:16:39PM +0100, Bruce Stephens wrote: > Sweth Chandramouli writes: > > > is there currently some way to reproduce the effect of > > the tee command in the shell itself, > > Yes. This works for me: > > % ps > some_file | cat > > You need the multios option set, and I don't recall whether it's the > default or not (it probably should be). it's not set by default, but this does do exactly what i want. > Is there any nicer way to say "save to a file and show the results" > than using the ugly "| cat"? i don't know that it's particularly nicer, but something like % ps > some_file > /dev/stdout should at least save a process from being spawned. -- sweth. -- Sweth Chandramouli IS Coordinator, The George Washington University / (202) 994 - 8521 (V) / (202) 994 - 0458 (F) *