From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16690 invoked by alias); 11 Oct 2014 18:12:01 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 33434 Received: (qmail 142 invoked from network); 11 Oct 2014 18:11:59 -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 From: Bart Schaefer Message-id: <141011095241.ZM1509@torch.brasslantern.com> Date: Sat, 11 Oct 2014 09:52:41 -0700 In-reply-to: <141010231223.ZM32612@torch.brasslantern.com> Comments: In reply to Bart Schaefer "Opts -i and -s no longer work together, haven't for while" (Oct 10, 11:12pm) References: <141010231223.ZM32612@torch.brasslantern.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: Opts -i and -s no longer work together, haven't for while MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Oct 10, 11:12pm, Bart Schaefer wrote: } } But by the time we get to zsh-3.0.5: } } schaefer[794] Src/zsh -fsi <<<'echo foo' } torch% } } (the shell is now reading from the terminal and ignores stdin) So the problem appears to be that ZLE remains enabled whenever the standard OUTPUT is a terminal, even if the standard INPUT is not, and having ZLE turned on (as it is by default from sometime after 2.4) overrides everything else, ignores the command line script file name, and reads from the terminal. So you have to use "zsh +Z -fi ..." to get the effect I expected. Do we want to change this, or document it? We'd have to move the default setting of opts[USEZLE] from zsh_main() into parseargs(), I think.