From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25510 invoked by alias); 19 Sep 2015 18:51:15 -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: 20602 Received: (qmail 11224 invoked from network); 19 Sep 2015 18:51:14 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 X-Authority-Analysis: v=2.1 cv=X+5rdgje c=1 sm=1 tr=0 a=Qosx6O6xXGET3N4RHWVm7w==:117 a=Qosx6O6xXGET3N4RHWVm7w==:17 a=N659UExz7-8A:10 a=Yz6GCxg9hLZ5OQ3h8p4A:9 a=pILNOxqGKmIA:10 Message-id: <55FDA795.5060709@eastlink.ca> Date: Sat, 19 Sep 2015 11:21:09 -0700 From: Ray Andrews User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-version: 1.0 To: zsh-users@zsh.org Subject: Re: simple question regarding local variables References: <150918101506.ZM26893@torch.brasslantern.com> <55FC5BC8.4040107@eastlink.ca> <150918145300.ZM27125@torch.brasslantern.com> <55FD8C19.4050602@eastlink.ca> <150919093221.ZM28238@torch.brasslantern.com> In-reply-to: <150919093221.ZM28238@torch.brasslantern.com> Content-type: text/plain; charset=windows-1252; format=flowed Content-transfer-encoding: 7bit On 09/19/2015 09:32 AM, Bart Schaefer wrote: > Actually this is a simple question about sourcing. > > On Sep 19, 9:23am, Ray Andrews wrote: > } > } sourcing I understand to create a child shell > > No, sourcing explicitly does NOT create a child shell; "source" *means* > to execute the commands in the current shell. Running a script by its > name without sourcing is what creates a child shell. > Of course. Pardon, I knew that at one time. Functions, sourced scripts and executed scripts. Over the summer I forget half of what I learned the previous year.