From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14686 invoked by alias); 14 Apr 2017 23:14:28 -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: 22667 Received: (qmail 5260 invoked from network); 14 Apr 2017 23:14:28 -0000 X-Qmail-Scanner-Diagnostics: from mail-vk0-f44.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.213.44):SA:0(-2.3/5.0):. Processed in 1.694412 secs); 14 Apr 2017 23:14:28 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,RCVD_IN_SORBS_SPAM,SPF_PASS,T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.213.44 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=wrbCRO1Cz0hHjwkhQBvuaUvpA5XIX5S9kzPChPBJqo8=; b=xSVgs7ya/3LTic4mBhkreluQp8jrSdm4k+91FZj95bcNlrqIGATpR9nkvixOUqJcGq xQfeyG6ks08dugOkLPjt/qD2yCmk9dVruo35ddq/B8KDql2qXNKr/ba66ltWEL92UlY8 M2VOhd9+Jp42gPqzsWr8+z+ktM7K7FNoSQ3PRoi8iA+Gn4JD9sIKNzTPnW3k0nwPNvqN y7nIX+0RqjTcdmiOfYLsVOYdQyiros/OJop3CZNtSAnWp07GUxGsm4+VGU8yMa8g3Fy/ 3aoKxL7WCbP+JMePoV/eWYDzyxkhOhJP1PZbnnyxn3S5S4HmVlRFP4BcYtK39sHFL8bW xxeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version; bh=wrbCRO1Cz0hHjwkhQBvuaUvpA5XIX5S9kzPChPBJqo8=; b=NjFfEJaz1UbbaVAjtxT20oLuyxys+f6GeSDo3/Z+EPT6X6dfrsKoR2rUY55alWtC8L NjSO4B1o/R3JzgTgEK64hE5dTa7y8jUJYJo1TDBZO357mrkWe1iXF2T9rn4GvXYx9nQL JTyTbVThDiejV45NnMZVOQmRcTBYsRGCN24a0MKZ7MqU6u175EVVBjFjtzdjw/zu8mdd jopGYBhEI/Jt1qjtD0+b5x0phB+/hSKPi+2/5XYgWLHrwgL8dAY6fB1bACrHDcAY2Txg 9WAv/MLnyxF1InvfDAF994S2S1k+p0SAt5+B9329slnHwRpCfJNIFkskVv/Zg+DIGy/X ejmA== X-Gm-Message-State: AN3rC/5nm4USWm72DkvXLsrJeVN891LirtSoDSJAul4C++BoGsQWVPKa dthzGWfxLsGKjDj9 X-Received: by 10.31.125.205 with SMTP id y196mr4495742vkc.105.1492211659530; Fri, 14 Apr 2017 16:14:19 -0700 (PDT) From: Bart Schaefer Message-Id: <170414161445.ZM15667@torch.brasslantern.com> Date: Fri, 14 Apr 2017 16:14:45 -0700 In-Reply-To: <4642151492209711@web5m.yandex.ru> Comments: In reply to "Nikolay Aleksandrovich Pavlov (ZyX)" "Re: allow zsh to source a script and then become interactive" (Apr 15, 1:41am) References: <20170414165548.GA13756@teapot.bifb.org> <4642151492209711@web5m.yandex.ru> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: "zsh-users@zsh.org" Subject: Re: allow zsh to source a script and then become interactive MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Apr 15, 1:41am, Nikolay Aleksandrovich Pavlov (ZyX) wrote: } } I tried to play with } `ENV==(<<< $'emulate zsh\necho abc') ARGV0=sh zsh`, } but apparently this does not work: e.g. I do not see `$path` variable } in this case, though I do see `abc`. Guess $ENV is too late to } switch emulation mode and have all necessary initialization steps be } performed. Using "emulate" only changes setopts, it doesn't re-initialize other state that would be in place before the startup files are sourced. Good idea, though -- it might work for Anthony's case. I'd recommend "emulate -R zsh" for more thorough option reset.