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.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 29751 invoked from network); 17 Jan 2023 21:44:03 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 17 Jan 2023 21:44:03 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1673991844; b=EziicXk9Ak1MIIIbGX3vRm+msy13ClLKFK/Q5vYOna7KTpcjDFNXrYSsjb4pqSH+14IX68N/sJ 2A2AdjO7Zw9odYzXf3F6dKKsXyFdvcLV1ZtsO2INNW7msuV3PCwF6Cr6x+HUvhWXoEnX5b47bz AA2BbCzMqVqRFj8u2fel2piqIWXXhhloA281C3IrYRfUBvZcH7e5URjH++5NqzkxQFRiCJdsyK NVqaeoCD7bYRdzNY+LZur7au1mTrATNkWixkdhwqwn/G8VJbu4561eSsUGR15Mgdal8sc/kRBJ HujvhfOcaC8LCpD++rjDTad8iSrlWdcCbDTfoCAzp6st8g==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-yb1-f182.google.com) smtp.remote-ip=209.85.219.182; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1673991844; bh=C/+iPSBU+4QSICHWQ/qO6O9zHrc4k13bicf7jo81PBM=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=oeqFyEnQmIsNE6P1t15TXpdkTDAEbiq7VAWSjbjH7N1pxZAtEE+AePZ8/bmzKGRcPxU2c3ZtNH ipF0UUCB9DNPFKOfytBSPOmfIYsUr0rLXDdipmqtD7nbFEa5OO2Y2GlBWtI1P5eMee6A3b8VHm ytWFYCy4qvfpA6/WphbK2ErgWf/PRgoPE459m5iOtfOb2p7TxqocWppXSVAPPeNVGC8k5Fd/Gz X3Wz/Fie0ZVRiGLs8FOdMl43HF/Zf7OCZcy9X+9gENXC+4BslenKzmenGY/9usXy0q0kLoQWzJ p9hTAEBC+sr7hJmf4MENv0qoaJpE3u9nw5xMPL4Cbip/cA==; 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-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=C/+iPSBU+4QSICHWQ/qO6O9zHrc4k13bicf7jo81PBM=; b=eC9FQEspk7Vn0NqpQep1mavh27 5l7PRYIlPVpuZOlqo+RdoB7N/o6V7ggYlha1eF+OSjPjWHs7zWu9PFLsZFdZb8d7zVsf3vQLZQMKc jOlK+oKytUSgjf3wUSgoZKQggFnpWt5bCRDWRJ2nkGauK/uT2EjKA1EmdxHW21pmH6IdWHNe76gl1 l8+9AxowdxT4tj5UdTcxRuCArzNvsFz5IEuj4ceGlXE1jWezEpm3gGWMWdiPrCfXPkXcVa9KprtB/ IZZmt2s9RdSJIuI9vTy0am9b9I1R63flkk9favIt/o9POqh+SBCBHH79cGzgaW78yNBTUvolQJ+kH eqkUYmsQ==; Received: by zero.zsh.org with local id 1pHtkR-000Ob0-CJ; Tue, 17 Jan 2023 21:44:03 +0000 Authentication-Results: zsh.org; iprev=pass (mail-yb1-f182.google.com) smtp.remote-ip=209.85.219.182; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-yb1-f182.google.com ([209.85.219.182]:43932) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1pHtjN-000Npr-Bu; Tue, 17 Jan 2023 21:42:58 +0000 Received: by mail-yb1-f182.google.com with SMTP id 203so35809715yby.10 for ; Tue, 17 Jan 2023 13:42:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=C/+iPSBU+4QSICHWQ/qO6O9zHrc4k13bicf7jo81PBM=; b=RQo62zaRHTFiN2jcPB2eeJ7fBaJIqdIdSn7ss9Q0hhBJlleZ168lO9kIop+XlR7a97 12yMaOceBYyaRRYsTE7I02Iv1UzG9hxcpy0I6uuaxhOgbyNI1L7uoAQYx6px0efxlF0n zViv7qdXPYZ/GnGWftC8A7zw5JoXA7fILkIkS2FlyPzu5oG/43m/qm+mQ9hl7Ks0YqRD TBCm8Ydw1EBtZeGXVvMLd6DbelnoK8V/4iA74jB2ymLsWvmzSLXHTqADA7b7tBPzWpRy 8xJuQdh1ZWyU3cSSP+KKDoMKwqBx/AIOsxT8vY3T5y03VvCXTUBVoYgoZpmJ0DIWA31S pntQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=C/+iPSBU+4QSICHWQ/qO6O9zHrc4k13bicf7jo81PBM=; b=SDtYijqLVTFwRWYYWIAJLNH3x+Rt/oQ/M45KulcII4+7wTKOxztPijsBMGOlvIZwWh UrKFMLc5kFZDSyQWno/YTikn/VfErfEOqIrnqbzs4YLs9NAySwzCxWA/3wjjpfPq2bTM QVLlik/bLPq+uiAuu2t2nvHxaQmW5eXpfbggny+TSwDXt3L78u3vkJSg47eeAfNgYm6T LyKcQav4m8yINcP5vPGjJzuBw2CjLOIfL+AaWAKUhYp12gJSYcw7fWl9ZUy9lHNXGSNF g0UmUeqbjSF9TY1e2hXqnCypN+mRu1UFxw887SIEaGj7cjglye7RHIy2/Uz01UuHiiIv 38Og== X-Gm-Message-State: AFqh2kpxCI8iqaYrVgfWAxgmABxCOUDwipxaDWtaEODLLoV+t2ctbKJg 4gK+nAgrsbxJ9ogq/GGWSJJ/JF1sMUaYZ+Otqtw= X-Google-Smtp-Source: AMrXdXsRcavpNhI0449B+lhFZ+VQTUDxKDXo54S/ljIabEaSgFT+mJxom6eEGFO7iWmx8RADRXoqK68AK8auq+P8bCc= X-Received: by 2002:a25:e708:0:b0:7d4:f469:9e63 with SMTP id e8-20020a25e708000000b007d4f4699e63mr732596ybh.138.1673991776210; Tue, 17 Jan 2023 13:42:56 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Roman Perepelitsa Date: Tue, 17 Jan 2023 22:42:44 +0100 Message-ID: Subject: Re: order of sourcing To: Bart Schaefer Cc: Ray Andrews , Zsh Users Content-Type: text/plain; charset="UTF-8" X-Seq: 28650 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 Tue, Jan 17, 2023 at 10:34 PM Bart Schaefer wrote: > > On Tue, Jan 17, 2023 at 1:24 PM Roman Perepelitsa > wrote: > > > > The standard solution is to autoload functions. It solves a bunch of > > other problems that you get when sourcing files with function > > definitions > > One complication here is that, if Ray is able to use "source" to load > a function's definition, then he's not writing the file in the > ordinary autoload format Almost certainly. If he were to switch to autoloading (which I think is a good idea), he would have to move things around. > That needs "autoload -U" I think? I usually go with `autoload -Uz` for good measure so that I don't have to think about current options at all. Roman.