From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-workers-request@euclid.skiles.gatech.edu Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by coral.primenet.com.au (8.7.6/8.7.3) with ESMTP id WAA02003 for ; Fri, 15 Nov 1996 22:18:07 +1100 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id GAA15651; Fri, 15 Nov 1996 06:09:21 -0500 (EST) Resent-Date: Fri, 15 Nov 1996 06:09:21 -0500 (EST) Message-Id: <199611151109.MAA22143@hydra.ifh.de> X-Authentication-Warning: hydra.ifh.de: Host pws@localhost didn't use HELO protocol To: zsh-workers@math.gatech.edu (Zsh hackers list) Subject: Re: more problems w/ irix In-reply-to: "Zefram"'s message of "Thu, 14 Nov 1996 15:08:42 MET." <24405.199611141508@stone.dcs.warwick.ac.uk> Date: Fri, 15 Nov 1996 12:09:22 +0100 From: Peter Stephenson Resent-Message-ID: <"GOQr41.0.Tq3.Xz4Zo"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/2413 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Zefram wrote: > It's a nice syntax. If it's grossly inefficient, we should improve the > code; being built in to the shell it *ought* to be more efficient than > execing cat, at least for small files. It's not hard to allow an indefinite number of files for input (i.e. cat) if you record their names instead of opening them immediately. The downside is some rather unexpected behaviour: the files are opened at random stages, not when the redirection line is handled, and an error message is only produced when the file is opened so that the command will already have been executed and all files up to the bad one will already have been output. (Of course, it would be set up so that the first file in the list is opened straight away.) Maybe this is too partial a solution to consider seriously, although it does correspond to the behaviour of cat. I've got it working but for these reasons I deliberately haven't included it. -- Peter Stephenson Tel: +49 33762 77366 WWW: http://www.ifh.de/~pws/ Fax: +49 33762 77413 Deutches Electronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen DESY-IfH, 15735 Zeuthen, Germany.