zsh-workers
 help / color / mirror / code / Atom feed
From: Tanaka Akira <akr@m17n.org>
To: zsh-workers@sunsite.auc.dk
Subject: closing stdin (Re: _make suppress error on OpenBSD.)
Date: 10 May 2000 04:34:07 +0900	[thread overview]
Message-ID: <hvohfc7h61c.fsf@serein.m17n.org> (raw)
In-Reply-To: <hvoog6ggc41.fsf@serein.m17n.org> (Tanaka Akira's message of "09 May 2000 21:08:14 +0900")

In article <hvoog6ggc41.fsf@serein.m17n.org>,
  Tanaka Akira <akr@m17n.org> writes:

> Z:akr@coulee% Src/zsh -f
> coulee% bindkey -e; autoload -U compinit; compinit -D
> coulee% make awk: i/o error occurred while closing /dev/stdin
>  input record number 366, file Makefile
>  source line number 1

I found same problem in zfcd_match.  It can easily fixed but I like
more fundamental fix.

This problem is caused by the one true awk behavior.  (OpenBSD comes
with the one true awk.)  The one true awk closes all file descriptors
which should be opened when exit and complain if it causes an error.
Of course, it assumes that stdin is opened.

http://cm.bell-labs.com/who/bwk/awk.tar.gz

However, we can suppress the error by modifying each awk invocation,
but I think that completion system should redirect stdin from
/dev/null instead of closing it.
-- 
Tanaka Akira


  reply	other threads:[~2000-05-09 19:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-09 12:08 _make suppress error on OpenBSD Tanaka Akira
2000-05-09 19:34 ` Tanaka Akira [this message]
2000-05-10  4:48   ` closing stdin (Re: _make suppress error on OpenBSD.) Bart Schaefer
2000-05-10  7:22     ` Tanaka Akira
2000-05-10  7:20 Sven Wischnowsky
2000-05-10 10:22 ` Bart Schaefer

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=hvohfc7h61c.fsf@serein.m17n.org \
    --to=akr@m17n.org \
    --cc=zsh-workers@sunsite.auc.dk \
    /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).