From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27488 invoked by alias); 27 Jul 2013 00:00:37 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17894 Received: (qmail 5714 invoked from network); 27 Jul 2013 00:00:21 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <130726170009.ZM8277@torch.brasslantern.com> Date: Fri, 26 Jul 2013 17:00:09 -0700 In-reply-to: <20130726203931.3e05f151@pws-pc.ntlworld.com> Comments: In reply to Peter Stephenson "Re: print to the terminal in zle" (Jul 26, 8:39pm) References: <20130726134811.GA14136@chaz.gmail.com> <20130726203931.3e05f151@pws-pc.ntlworld.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: print to the terminal in zle MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Jul 26, 8:39pm, Peter Stephenson wrote: } Subject: Re: print to the terminal in zle } } On Fri, 26 Jul 2013 14:48:11 +0100 } Stephane Chazelas wrote: } > recently, Debian broke some of my scripts using ZLE in `zsh -i` by adding: I have to admit that I'm with Frank in being confused about "scripts using ZLE in `zsh -i`". } It's just occurred to me that maybe zle special functions should be run } with stdout and stdin set explicitly to the terminal. I can't make up my mind about this one. If anything is to change, they should have stdin/out set to whatever ZLE is using, not necessarily to "the terminal" (though perhaps those never differ?). } Arguably they have no business knowing about a redirected stdout or } stdin since they run in a context where that's meaningless. To the extent that "zsh -i" can be used to force interactivity, isn't the point of doing so to have the shell read standard input "as if" it were a terminal device even when it is not one?