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 11918 invoked from network); 13 Feb 2023 21:46:56 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 13 Feb 2023 21:46:56 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1676324817; b=TWAq+uVreCSr6AxxNJMyOlKY7jQjQkdFVVUYl+/Nsmj4XzHYEBYhCMX0sxsCnDUiRZVOjxTe99 if1Soq4paouW9QihnYn6LIzjcBYytXtO8o5cphmWxH6K0GHAcQuvQ2T0lkWdH7SzQ2TXG3XFUN G19IpL8mIn2YU1XS0+ogJU30THiVLgYX0CF02guSmICbryCLqcPd43yeR0anCD1y6M8RExYZv6 5AU2QjdQD3WkuMdMh7c2GfXwFb/fl4R2HhuvGr2KOtgHKtdqS22/LURsbZL273SJr8a1HZTVDI 88XmbL9CD/of/hitNhV5ueGiP1eryc3HaIsbqz/ZqO7ATQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f53.google.com) smtp.remote-ip=209.85.218.53; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1676324817; bh=QerM79dHD35b9apOXSJlq/ndqyWT3RfL2muD2a4+aIE=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Cc:To:Subject: Message-ID:Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature: DKIM-Signature; b=OdeqOvPn0dJT5rmVtUgC3JT9iEr0wY86NdSjlW3+wm0S7hpEybe5y9UkDbv6WZinFvYxIwzg4D wF7Zn9rt5G64+c02tZTK/noY6StSNvK2WcYaqFEWbznM509m7t23iBG248Prndlz5ArU1cpQkt UkANdcq8CLDYVcLhS8pdPhjXTEf05k9ZW14a+q5rg7aLt0LxhtqM7jWH6OdbHpxFrxsyc5a3jI gjiDeYUVpbilng4ENi5tbLrnTiPH2SbcU+bzlBfPEWoQVAhI9HLBvSwfUMx7fSEh/dF1tORGgB Q2eBQ/sLaILeBOspM+J7asNJhBLOo0PIkzKLnivPvGLU1w==; 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:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=9p4RLmGS5vdUBi5QbmNcRq1CevFhv+8PEh/2/w7ba8M=; b=TqE4VZ5NkI//stF49qFLCoaQcZ fgSPzu9YTrNt3ghBRDDuu0jkMecldUlwimqrG62QljOqrN6rMaiS//lP3rY1IOwhsTjpimYM7c0kq ls20rspQrOV2uzYnQ4/UMPEyGjzJbkAmWJV6IfCA2950P9QkBO+8QvEVV2Ax/Q52KKw4YantDGySh y+HrF4C3r4ghIGqxQHrmSxzxLNUZlG+XCrbxIZTHJVR6VkVyuwSJNrcgCfksdlb62/Ij/ctMWMHBQ jhxe2K1N8oGDbmpbSdCQhL55jf+9VR093Jw4sGJpkdFP/F/76doFxpb0oBAAXs8WbCLLBaLUR8odx 3CIRXkCA==; Received: by zero.zsh.org with local id 1pRgf2-0005wC-Cc; Mon, 13 Feb 2023 21:46:56 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f53.google.com) smtp.remote-ip=209.85.218.53; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ej1-f53.google.com ([209.85.218.53]:42901) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1pRgeQ-0005bY-Qc; Mon, 13 Feb 2023 21:46:20 +0000 Received: by mail-ej1-f53.google.com with SMTP id sa10so35251872ejc.9 for ; Mon, 13 Feb 2023 13:46:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=9p4RLmGS5vdUBi5QbmNcRq1CevFhv+8PEh/2/w7ba8M=; b=UblqTGdP4R4ps4b9uIRQXl//pTW9UHqjDYqeW+2ijD8M9pz+GBQoqjT1Kxj4XDs1cx bR2z+sb5XwVro+Umwvj4PJZciBsL5UI6XBnpnqaBXqUhd4ZNKbNrbYOcjsRuq+1ZmFW4 c0/wMY4JBaxRSnePqoFv1sf3IFRR8/h7ex9L8N0VwYjls7HjL9xrNhQ8lQmWpT73uVDy GnVgcMyQVHdbMg3bfMGf3IvffFRFJqqHurJLZGZ1BRQ1mH65ovju/S5mit/vtbYQceUE fNxmP+56kApRQV8fg53GCb3gE+gbvupPCJUqWQep+WsvWYl/e9ZoF66ZdYgsx8v+rW2D SPGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding: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=9p4RLmGS5vdUBi5QbmNcRq1CevFhv+8PEh/2/w7ba8M=; b=GJYFQksUVHfG4TMhL6wYvQyynXqZ6heK7dA3tQz/4mUX0wh7FnkjFLrqk1L8oUdp+z ENGu1bmiuoMEI/FZ2gkel1U9qvgr+bPetn1v/2d5O5pokMvofG+WuS+lYkCGxX9zAYvx JghheXfkZV1JW3XhRE+1cpHl/7nNYX4m4Pa3JESwfjFS5IV9BuPtZkol/a0hLM2DFpc3 Tlm+r2n4og0mISa5HLHN8a3Wo97D11nhxkza2XynWw0ux31qo9m7WgplfFgnkNQ8ucve kxap43dfBViOJN3cdXTStruC900EYyTa9ohUQr1JyUfDmj+CgJsfj1Z2MxoEI8iI2Jp7 AApA== X-Gm-Message-State: AO0yUKULMfPBT/Xa7yBdk4Nf9uROMSym9J6sqlr3yZ2AKgRPvsugcXoc TN+OiYJx5BdVnc0Xj1r/1BLE4SB3D0+PsIJIoA5hEQ== X-Google-Smtp-Source: AK7set/hx+kOH1JZHE7FbpYVaSOKHLBEeUOWai0BiIh/i5QixpV9acwb6l3SuT0q38+NzH7H+9kP0JgQ46k0BEDoaKc= X-Received: by 2002:a17:906:160b:b0:877:747c:373e with SMTP id m11-20020a170906160b00b00877747c373emr205077ejd.6.1676324774947; Mon, 13 Feb 2023 13:46:14 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Mon, 13 Feb 2023 13:46:03 -0800 Message-ID: Subject: Re: --init-file option To: =?UTF-8?Q?Kalm=C3=A1r_Gergely?= Cc: Roman Perepelitsa , zsh-workers@zsh.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 51429 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: On Mon, Feb 13, 2023 at 12:59 PM Kalm=C3=A1r Gergely = wrote: > > Yes, I could do something similar as what zshi does, but that seems like = a suboptimal solution, because it would require a duplication (and indefini= te maintenance) of the startup file processing logic in an independent code= base. I don't follow that at all. You're keeping the file for --init-file somewhere now (I presume), so why would pointing ZDOTDIR at it require a new codebase? Anyway "bash --init-file" replaces (both global and user) bashrc rather than run the file after them, which doesn't match what you originally asked for. Does it in fact do what you want? Does your file need to create internal variables or functions, or is it just populating the environment?