* INTERACTIVE vs. SHINSTDIN
@ 2001-03-25 23:49 Bart Schaefer
2001-03-27 18:12 ` Zefram
0 siblings, 1 reply; 2+ messages in thread
From: Bart Schaefer @ 2001-03-25 23:49 UTC (permalink / raw)
To: zsh-workers
zagzig[514] Src/zsh -fis <<<'echo hi'
zagzig% read -e
echo hi
zagzig% cat
zagzig%
Hmm, so SHINSTDIN is true, but in fact the shell is not reading commands
from stdin ... yet commands started by the shell read from the actual stdin,
not from where the shell is reading commands from ... I suppose one can get
some interesting effects this way, but is it really the correct behavior?
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: INTERACTIVE vs. SHINSTDIN
2001-03-25 23:49 INTERACTIVE vs. SHINSTDIN Bart Schaefer
@ 2001-03-27 18:12 ` Zefram
0 siblings, 0 replies; 2+ messages in thread
From: Zefram @ 2001-03-27 18:12 UTC (permalink / raw)
To: Bart Schaefer; +Cc: zsh-workers
Bart Schaefer wrote:
>Hmm, so SHINSTDIN is true, but in fact the shell is not reading commands
>from stdin ... yet commands started by the shell read from the actual stdin,
>not from where the shell is reading commands from ... I suppose one can get
>some interesting effects this way, but is it really the correct behavior?
We changed it to be that way some time ago. In interactive shells,
commands are read by ZLE, which talks to the tty, regardless of stdin.
All is as it should be. (Leave out the -i in your test case and commands
*are* read from stdin.)
-zefram
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-03-27 18:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-25 23:49 INTERACTIVE vs. SHINSTDIN Bart Schaefer
2001-03-27 18:12 ` Zefram
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).