zsh-workers
 help / color / mirror / code / Atom feed
* Re: closing stdin (Re: _make suppress error on OpenBSD.)
@ 2000-05-10  7:20 Sven Wischnowsky
  2000-05-10 10:22 ` Bart Schaefer
  0 siblings, 1 reply; 5+ messages in thread
From: Sven Wischnowsky @ 2000-05-10  7:20 UTC (permalink / raw)
  To: zsh-workers


Bart Schaefer wrote:

> ...
> 
> It makes more sense to me from the standpoint of the shell's internals to
> simply close FD 0 rather than reopen it on /dev/null.  On the other hand,
> I've long forgotten (if I ever knew) why the stdin of ZLE functions is
> closed.  (Zefram?)  It's trivial to reopen it again:

This was done (by me) in 6484. For messages leading up to this, see:
6462 etc. (subject `Re: forwarded bug report', original: 6383).

Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] 5+ messages in thread
* _make suppress error on OpenBSD.
@ 2000-05-09 12:08 Tanaka Akira
  2000-05-09 19:34 ` closing stdin (Re: _make suppress error on OpenBSD.) Tanaka Akira
  0 siblings, 1 reply; 5+ messages in thread
From: Tanaka Akira @ 2000-05-09 12:08 UTC (permalink / raw)
  To: zsh-workers

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

FORCE                   config                  install.bin             mostlyclean-recursive   test
META-FAQ                config.h                install.fns             prep                    uninstall
Makefile                config.status           install.html            realclean               uninstall.bin
all                     distclean               install.info            realclean-here          uninstall.fns
check                   distclean-here          install.man             realclean-recursive     uninstall.html
clean                   distclean-recursive     install.modules         stamp-h                 uninstall.info
clean-here              install                 mostlyclean             targz-doc               uninstall.man
clean-recursive         install-strip           mostlyclean-here        targz-src               uninstall.modules

This patch suppress this error.

Index: Completion/User/_make
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/User/_make,v
retrieving revision 1.7
diff -u -r1.7 _make
--- Completion/User/_make	2000/04/27 12:44:21	1.7
+++ Completion/User/_make	2000/05/09 12:04:50
@@ -39,7 +39,7 @@
             $(awk '/^[a-zA-Z0-9][^\/\t=]+:/ {print $1}
  	      /^\.include  *<bsd\.port\.(subdir\.|pre\.)?mk>/ || /^\.include  *".*mk\/bsd\.pkg\.(subdir\.)?mk"/ {
  	        print "fetch fetch-list extract patch configure build install reinstall deinstall package describe checkpatch checksum makesum" }' \
- 	     FS=: $file)
+ 	     FS=: $file </dev/null)
            )
     fi
     _wanted targets expl 'make target' compadd "$tmp[@]" && return 0
-- 
Tanaka Akira




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2000-05-10 10:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-10  7:20 closing stdin (Re: _make suppress error on OpenBSD.) Sven Wischnowsky
2000-05-10 10:22 ` Bart Schaefer
  -- strict thread matches above, loose matches on Subject: below --
2000-05-09 12:08 _make suppress error on OpenBSD Tanaka Akira
2000-05-09 19:34 ` closing stdin (Re: _make suppress error on OpenBSD.) Tanaka Akira
2000-05-10  4:48   ` Bart Schaefer
2000-05-10  7:22     ` Tanaka Akira

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).