From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27709 invoked by alias); 1 Jun 2011 19:55:24 -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: 16069 Received: (qmail 2121 invoked from network); 1 Jun 2011 19:55:14 -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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 74.125.82.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:content-type:content-transfer-encoding; bh=VxGx0pFTmG4/cotY63pfJMw/kkFlSPUV1VYMbPyYL+E=; b=wLzxer8eT1adCs2wa95jZBKu7oniXukDiy+PMektE3KqzBe6oUDn1ygu4yhYuJYkEp wUJR9aQAlEDItT84hf/QEP7fBD/KCFMjKF2eaO9HGMubDlaGjGccOwjluRKpc1EaOF1g XZe5nbfAhWlEj0yUM0L5Yk+x31BJJYGMQx8QQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=pAkLZrqPjrp0IHMx9V/t9zaDigRLhhAcmfXdxD+v7o724oAlZClrbIp//tEWqGAzbF gHdR7t/NjpOyVGxNNXccVeG4z6uqY84tbTns+auki8VV/fBoFuWVL1jRLNM0WBN3EoCG BZTDPLwONn1JYfXxAeOY797QrcGSrQo9O99f0= Message-ID: <4DE69918.4040205@gmail.com> Date: Wed, 01 Jun 2011 21:55:04 +0200 From: "Radoulov, Dimitre" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: zsh-users@zsh.org Subject: Fwd: exec - interactive vs non-interactive shell Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi all, could anybody explain what happens here? 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 zsh-4.3.11[t]% zsh -i< a_script zsh-4.3.11[t]% No output with -i. bash does the opposite: zsh-4.3.11[t]% bash< a_script zsh-4.3.11[t]% bash -i< a_script 4.2.8(1)-release$ exec cat ok zsh-4.3.11[t]% Best regards Dimitre