From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-5.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 13259 invoked from network); 16 Apr 2023 16:49:10 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 16 Apr 2023 16:49:10 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1681663751; b=beG0fFiVJfpQJhVfi+lgNDB+m0qcvL7Tgt7h2/d0We3XWlPMQZ7fsbUmMjSaiyzTOtDNiz7SY3 +TNtjxm7vCSF/MpzQa1EUp5uIS4ZHRLJMFiPV58ohRPmz8QuP41mHvl+WuCUKNCPqGLltPxhR1 Cg4WDmFJekk/8aOAVmFXEh1cyfVBZlXspswnabn0xyvaAd61zfp2cT868Vga+ivivUvwJ8KIRH Au/e2877DEj9mXNoXVkEnD+2ldQEMtF15NNI2Ttyl3rySL7vZW6IHds9dmCzNDeF2jsSVcXgja U0nA9MAtwBrxsaPHyotq2qg3wKyTk/+QGkeiNyAtWineFg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta03.eastlink.ca) smtp.remote-ip=24.224.136.9; dmarc=none header.from=eastlink.ca; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1681663751; bh=9WiyE+4qmM3eODYUNFIqP8NVZGRdyOsL9S7Xp4F0+nM=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:To:Subject:MIME-Version:Date:Message-ID:DKIM-Signature; b=jfpKPsBAWPd6f5CWA+FejKXotmoZuyZo3hZ3Q+3CDzWQLapzosXWD9OJnknqmtsaunsRzNWEnd Weo/7Olk4+5stp1caJXIYlcllJoe1lipaYymwJy8qjJmAYKEJ1uuju8hZWmUIQGnNycf6hBNzB i2iPr5uZroxPInMTDVrzysvR2jOO3+PKpIJBcXqGG5ggqoIqi2K7ysJkUIb0aKsoe1OAz8xjo5 mGFe/HVtiszEFZWKwuxQbNoW/cCavgrauJzkF3w3UAYtyeKFh1pGO/y7VgUVsV7ljjwp5YhaBl Di3pI9OY1FEU+62xSAirSGuwY3UOI4HPPVyO4ffsXA2w/A==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-transfer-encoding: Content-type:In-reply-to:From:References:To:Subject:MIME-version:Date: Message-id:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=XF5PASiB2ghpNjVCHRWBKewXNTKnJcvqxvH4obM4wu0=; b=PjQ4D7VON+1YKsSKEcb54XThKi PBnGxR5/NjRPPb/HskAfDmBoB9epO6emYQnNkliZ/0NwgXPn86Zs+IKBoyrUQpV8CSPR6Vq3FnGuW +c5kqiMvYVdas4JxAQSNIhyEfu0KdemBKl3WyzuMcuvFwMfln6GW6XPomUlbSuw4PsBl88JnAEPwt rpyPaPg0xya1ARHaOo3ifYL8eYgYuGgyaa0abPyNnI2rbKDkoeQyW3l5nbA3xEK5S+drOdv2Q23Gs TRv62jSJd3Gxnwj0TAf4S1HumNF5Fr5G+7SwlFUnPYI0wz2wh02zd6zt9nrOY4UeV75m/gWwq7ZFI 1XDHBEKw==; Received: by zero.zsh.org with local id 1po5Ys-000GdS-Ko; Sun, 16 Apr 2023 16:49:10 +0000 Authentication-Results: zsh.org; iprev=pass (mta03.eastlink.ca) smtp.remote-ip=24.224.136.9; dmarc=none header.from=eastlink.ca; arc=none Received: from mta03.eastlink.ca ([24.224.136.9]:45212) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1po5YL-000FxN-FH; Sun, 16 Apr 2023 16:48:38 +0000 Received: from csp01.eastlink.ca ([71.7.199.166]) by mta03.eastlink.ca ([24.224.136.9]) with ESMTPS id <0RT700KXOVW7K9E0@mta03.eastlink.ca> for zsh-users@zsh.org; Sun, 16 Apr 2023 13:48:36 -0300 (ADT) Received: from [192.168.0.4] (host-24-207-18-108.public.eastlink.ca [24.207.18.108]) by csp01.eastlink.ca ([71.7.199.166]) with ESMTPSA id o5YJpeoiGhhvwo5YKpzK90 (version=TLSv1_2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256); Sun, 16 Apr 2023 13:48:36 -0300 X-Authority-Analysis: v=2.4 cv=NdAglUP4 c=1 sm=1 tr=0 ts=643c26e4 a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=IkcTkHD0fZMA:10 a=BLkGM8ZB3nudvAeS9PYA:9 a=QEXdDO2ut3YA:10 a=ZXulRonScM0A:10 a=zZCYzV9kfG8A:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdelgedgieefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecugfetuffvnffkpffmpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvfhfhjggtgfesthekredttdefjeenucfhrhhomheptfgrhicutehnughrvgifshcuoehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgeqnecuggftrfgrthhtvghrnhepiedtjeffvefgtdehgefgteekueeggeeitedutddvvdduteetffdvveelgfeukedunecukfhppedvgedrvddtjedrudekrddutdeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdegrddvtdejrddukedruddtkedphhgvlhhopegludelvddrudeikedrtddrgegnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepreerpdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghdpghgvthdqkghiphfrrghsshifugepthhruhgv X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Message-id: Date: Sun, 16 Apr 2023 09:48:35 -0700 MIME-version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: order of sourcing Content-language: en-US To: zsh-users@zsh.org References: From: Ray Andrews In-reply-to: Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 8bit X-Seq: 29038 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: On 2023-04-16 09:17, Roman Perepelitsa wrote: > This sources only one file. If you want to source multiple files, you > need to run `source` (or `.`) multiple times. Nuts yes.  I was attempting to make a minimal example of the issue.  In fact this happens with my real functions which are sourced in fact with: $ for aa in *(.); do source $aa; done ... doing that in my test directory cures the problem, but I still have the problem with my real functions -- I have to re-source function files that call other functions if the called function is sourced latter than the calling function.