From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24671 invoked by alias); 1 Jun 2011 20:42:54 -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: 16070 Received: (qmail 5994 invoked from network); 1 Jun 2011 20:42:51 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) 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.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at ntlworld.com designates 81.103.221.48 as permitted sender) Date: Wed, 1 Jun 2011 21:42:40 +0100 From: Peter Stephenson To: zsh-users@zsh.org Subject: Re: exec - interactive vs non-interactive shell Message-ID: <20110601214240.6fde31de@pws-pc.ntlworld.com> In-Reply-To: <4DE69918.4040205@gmail.com> References: <4DE69918.4040205@gmail.com> X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Cloudmark-Analysis: v=1.1 cv=JvdXmxIgLJv2/GthKqHpGJEEHukvLcvELVXUanXFreg= c=1 sm=0 a=WfJUADX6G8cA:10 a=uObrxnre4hsA:10 a=kj9zAlcOel0A:10 a=pGLkceISAAAA:8 a=NLZqzBF-AAAA:8 a=CvX1wNJpJ7qKRWpXTBcA:9 a=CjuIK1q_8ugA:10 a=MSl-tDqOz04A:10 a=_dQi-Dcv4p4A:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 On Wed, 01 Jun 2011 21:55:04 +0200 "Radoulov, Dimitre" wrote: > zsh-4.3.11[t]% cat a_script > exec cat > ok > zsh-4.3.11[t]% > > > zsh-4.3.11[t]% zsh< a_script > ok So cat has taken over stdin, as expected. > zsh-4.3.11[t]% zsh -i< a_script > zsh-4.3.11[t]% > > > No output with -i. You're confusing the effects of "zsh -i Web page now at http://homepage.ntlworld.com/p.w.stephenson/