zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@ifh.de>
To: zsh-workers@math.gatech.edu (Zsh hackers list)
Subject: Re: more problems w/ irix
Date: Fri, 15 Nov 1996 12:09:22 +0100	[thread overview]
Message-ID: <199611151109.MAA22143@hydra.ifh.de> (raw)
In-Reply-To: "Zefram"'s message of "Thu, 14 Nov 1996 15:08:42 MET." <24405.199611141508@stone.dcs.warwick.ac.uk>

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 <pws@ifh.de>       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.


      parent reply	other threads:[~1996-11-15 11:18 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-11-13 17:23 Ray Jones
1996-11-13 18:38 ` Bart Schaefer
1996-11-13 18:43   ` rjones
1996-11-14 10:01 ` Peter Stephenson
1996-11-14 15:08   ` Zefram
1996-11-14 15:23     ` Richard Coleman
1996-11-14 15:38       ` Zefram
1996-11-14 16:05         ` Richard Coleman
1996-11-15 11:09     ` Peter Stephenson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199611151109.MAA22143@hydra.ifh.de \
    --to=pws@ifh.de \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).