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=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 25917 invoked from network); 17 Jan 2023 21:10:41 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 17 Jan 2023 21:10:41 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1673989841; b=ng7fAYua6TV6VC5jzB7LL9bG0txogKvrZjQqweDG19fI15FXCPM4G4utY/AojiGZOw15lgemuc 35NNrZ6Dh7zjmiKs/VPvyglIcmRgIQvdtuV3Au2JxpqEUHs8Vza7ZQV0tMuxoddylUU4HUTQ// qv7LnAOgpsfkppj31rzYqbPnypMdN0dMDaV/MCe8h2+8fveHFjLnxaozAre8VX2Rxk/2NgE3my QggnYy2IMpC2vbfs9nAHlzA6gN8Gk3TnESP8yB3klJMfhI8QfApdG7UjAPTBRQO4VmA4gw3uFS xpcI51Wb9QXT74NMW5ZS5tx3XiWSFeUUm1k7rdxsd2gDDQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta04.eastlink.ca) smtp.remote-ip=24.224.136.10; 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=1673989841; bh=csUIm64hATv+0sLTJPH3d1YxkPuGFhvq6zgih23fREk=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Subject:From:To: MIME-Version:Date:Message-ID:DKIM-Signature; b=J9guTCO0dmdLOcuFBx2FmAP2f8wbsCQMxF1Yg/RbVApaYHrqGXAdF/ZtBmGEqsLbM5y/SNj+gB 1KU4dsh8lAB+4BEbC9sJqAH4dGUEm7h0KanR3e92XgF+Pqn/NmFqc1ywB8p97wruKgrqfWTDem KxtzC6Wvh8P9WgLBAbbMNzfuG0hjCrBjA5ebG4D7LJF3GGbB9vRYmy7wVHjSpC2JhRw87c/jIP OCeenWP/o+3TT9qriWLNIQu7R4i5iQVdDTEyd4fHJSKgOW/F8dj6crsuzK9ybkCWuEL7HkMyK/ NG2f9huFMgbJ9YIy1zUOQzdYll/AOXO+2RNr7s9qed5qEQ==; 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:Subject:From:To: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:In-Reply-To:References; bh=HzOpZScDgPMHSP2cLKNVgcgn4iLX0ZGoj4/E9Nz6KNw=; b=DlHb/c+bGHYcXangehCK82O7ZD 8EQ+OcFiUl6/6xCS6w57S2sCwIA/NVrsNkIBSQhBYEjaxRNRQIy/1Iozd1nJiIE9XK18m68/2pv0n huRsfKBLZgnXFwyaop0qyZ1WU4t2HFxWZnBxXjTWpsjoCR3XnNOdjbmJIAFulPGkWHupVZC0afUaK Wg5iAEDGiqI2l9Kt6f/YbsyKj9lgIv3FzY5EeAlno2dnlhzCNbGuRxXC7JI8T6uyBGdd7Asy4WP5w ASSfLn47XM4QALDgwIx3nRAtTXaSxPVbNCJTTY76iMZC3GXVm2ouQ5+hA2m4JZRiUFKgzDU7iQx2D 4ugYYRqw==; Received: by zero.zsh.org with local id 1pHtE9-000KNo-At; Tue, 17 Jan 2023 21:10:41 +0000 Authentication-Results: zsh.org; iprev=pass (mta04.eastlink.ca) smtp.remote-ip=24.224.136.10; dmarc=none header.from=eastlink.ca; arc=none Received: from mta04.eastlink.ca ([24.224.136.10]:60965) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1pHtBC-000Iae-0c; Tue, 17 Jan 2023 21:07:38 +0000 Received: from csp02.eastlink.ca ([71.7.199.167]) by mta04.eastlink.ca ([24.224.136.10]) with ESMTPS id <0RON00JDX82KPTS0@mta04.eastlink.ca> for zsh-users@zsh.org; Tue, 17 Jan 2023 17:07:37 -0400 (AST) Received: from [192.168.0.4] (host-24-207-18-108.public.eastlink.ca [24.207.18.108]) by csp02.eastlink.ca ([71.7.199.167]) with ESMTPSA id HtBApixJfjOrIHtBApHwwA (version=TLSv1_2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256); Tue, 17 Jan 2023 17:07:37 -0400 X-Authority-Analysis: v=2.4 cv=Kv6Lm0aN c=1 sm=1 tr=0 ts=63c70e19 a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=IkcTkHD0fZMA:10 a=hknn_BdMCO4XBqsikB8A:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedruddtiedgudeggecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepkfffgggfvffhufgtgfesthekredttdefjeenucfhrhhomheptfgrhicutehnughrvgifshcuoehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgeqnecuggftrfgrthhtvghrnhepveehudegteeiveevieeutefhffelheekueeghedthefgteejvefhgfekhfeigeffnecukfhppedvgedrvddtjedrudekrddutdeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdegrddvtdejrddukedruddtkedphhgvlhhopegludelvddrudeikedrtddrgegnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepreerpdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghdpghgvthdqkghiphfrrghsshifugepthhruhgv X-Vade-Score: -100 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Message-id: Date: Tue, 17 Jan 2023 13:07:35 -0800 MIME-version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Content-language: en-US To: Zsh Users From: Ray Andrews Subject: order of sourcing Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 8bit X-Seq: 28647 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: In my .zshrc, to source all my functions I just switch to the directory where they're stored and:     for aa in *(.); do source $aa; done ... seems fine, but sometimes I'm editing one function or another and I run into 'not found' issues, like some subsidiary function has been 'lost'.  Sourcing it's file fixes the 'not found' but I'm wondering if there's some standard way of insuring that function files are sourced in a preferred order.  For some of them I've renamed the files in an alphabetical order since the above code seems to source the files alphabetically.  But it's add hoc and messy.  Dunno, I could list them all in a file in preferred order and then source that file.  But what's the done thing?