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,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 27479 invoked from network); 31 May 2022 17:24:17 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 31 May 2022 17:24:17 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1654017857; b=eQheXxL/zBoTLswmBG3D/vaEm8Sn0EsTCg0011D6ZBxS0YL3S2hxw5WrwvjHFlcoHtjdhBBOQR bmAbHErJUQv+q4l28GBhIfpIO8KW/NRgRThJ60l5/Ox2bJG5aoXpJ5xn8x2oSuJ81hLJQD+ro1 pLU6eMz5pMjWVvGS/J6Yil7OslrDitcVCWMyX36dMlzNptoakgvaQiQgdtdy9baePTzv+2GbRr uhum+Xl+B02QJO8ApOF/xzvDnCyTATJtEGodhTGWzwJ8328EJttYLva8DKERAVs9OVs1IPRJHm jIhIrDAWAwfQF1zjkOCMKkHlZkkmxCIlle19jKJ30+n7DQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ed1-f50.google.com) smtp.remote-ip=209.85.208.50; 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=1654017857; bh=mSqX+HyZKL9MhAr6zSoudzR43bK29qhTmmPL9Q4jpWM=; 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=EJNig4N1gxXPw7f4bZiFqgC6wd8+ytDjpIvwMvxWU7fwJmBGL2SceMjtZ+BaLDAkcaaNaVO0d0 BzdzztsPoDWxy3E7uq/SRnTqquBnc4eYEmJISCo3Pdep8fS5v5qfx09P7sZE4aAIVmkM+7rE89 kx4tEMluY7iB+m7F6cbWokF4O+GQq1cFafbdHtv6ZQIlFt2o8m7OwZpMSp6xC3RomMbsSR35Ui iNnBnO63U4fYyPFIyN2q7Luk0rshkjwkbocUKAKmrq5psiSINgUF0kYzG4k54JItA1NAnYPDfH /uq19vxGjXhBmkPAphBbe5Adxg9ykIeSyJsNSXDK9fZl8A==; 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=hlq6WD8oQogzihMn4R6okgLaRDMx+ZZcH/N9sHx96+A=; b=Wt4t5N5oA1vzqGoX80h86eq9d5 ahPsK46x8010kGNcJubeqXiD2ZV8LVzNf/4vJqPgOgU8+g2yVJ6StHLxkqFj8nsEJl214h24sUXm5 HM6y5FvP3je1muQZQI1UW6/mY+EAl4sf9GUFy9lu+cH4ENBJkLnVu1X902wHCQO1A/hzHqog98/gV ocooR4Fs0IZwDvrnTXNws6HuuoOvVrNXb3sMF9NXHu3dFG/1RsCSbuJn0UofxY45tsFuaMHPkz8Ht yKKI1QTVJRRGIVQGMSK5LA5qq0U/x5Neexc6QqBLcsSaDIBHr866hz4Aqru+MLj+Od1PM1peiT4hV ZAd6CASA==; Received: from authenticated user by zero.zsh.org with local id 1nw5bN-000LHZ-It; Tue, 31 May 2022 17:24:17 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ed1-f50.google.com) smtp.remote-ip=209.85.208.50; 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-ed1-f50.google.com ([209.85.208.50]:36743) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1nw5aJ-000KRE-7X; Tue, 31 May 2022 17:23:13 +0000 Received: by mail-ed1-f50.google.com with SMTP id fd25so18467912edb.3 for ; Tue, 31 May 2022 10:23:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hlq6WD8oQogzihMn4R6okgLaRDMx+ZZcH/N9sHx96+A=; b=ffADMkVyUKSwHYqciFjk7RQgsddAHdJNXIooQVweQpVueG/LFmgEY0ZXuit9ucFMKp WytjYJV+sjCkRaNCIIhKSM9ovCM+6+ZGWnG4559ycnovfOgoPGUf9DLxOEDN/6vLeuVH XZu04G4g4C70cvx3NZwPco9UuuUdDrNzodYoJvYrxaEybDOhVcTfUaP48x3ojV2/kCvu m27ZLpdTrOktdel6ZSHf/cbQFsoDmROFpsVSHfqkOS/gRsBefx0kaJ2gtpBRXS3bc6wq UMUNkO2eWAKw1TrvXleKhZU7cqGXFpZc0JCzBULvkPRP1s4d7BqfxaQKbA4Ax1ZdP8PA lwrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hlq6WD8oQogzihMn4R6okgLaRDMx+ZZcH/N9sHx96+A=; b=4SuO9Az0LBqRga6GMT5MFEMeGgGqAncFUQxGqb27LADsP1whjI3KNk4aVirpo1BMqJ FYHOtroYG9DwKWAUasdn17kZs/Qgz36nEUFcUcEJlMQ21N655SSHYGtgc+tB8UQy3hWg hkpYAOYm9i9xEdyIgyl8AHyJ0jA5T5Tv7cK+1y41Iqy0SYlNWBvG2Fryy9CGE2UR+YPF rMJPunSQNBS0YZ7Pga/2nQ912kxrMpDZpmzgQMSXe2B4vTC+Lcv04x5OH2vGnuDh5hpF w1XrrVeEjBxtS2cFkfULyYHd1jqnIqFUhgVeSj2BC3ZeCPBfs6w+iVL6W/fUj0d0sU/D ABrg== X-Gm-Message-State: AOAM530GL9WtMsDQMyykP9fHcWJi7UFt9kFe0ozdiPycfql3W8GP383t x+Vu8ikeGT89JSoNdeMkxEvaqzBH7+Yfx5T6gIrAYINeEIg= X-Google-Smtp-Source: ABdhPJziSr3/KeC8NvWWMQZNKNkzC2Ekf+itOPzvPp6aSS8sFAMZFGrQf1zMttSURh6zN1DA6hC0p62qqCI4caq/X/k= X-Received: by 2002:a05:6402:11cb:b0:42b:6315:7cde with SMTP id j11-20020a05640211cb00b0042b63157cdemr49205815edw.264.1654017790915; Tue, 31 May 2022 10:23:10 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Tue, 31 May 2022 10:22:59 -0700 Message-ID: Subject: Re: Why is path not a -aUT type? To: Zach Riggle Cc: Zsh Users Content-Type: text/plain; charset="UTF-8" X-Seq: 27828 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, May 31, 2022 at 4:16 AM Zach Riggle wrote: > > Is there any reason that, by default, we do not > > typeset -aUT PATH path The main one is that PATH is imported from the environment and it's messy to immediately mung it and push it back there before we've even finished the rest of pre-RC-file shell initialization. Further, it's not up to us to decide how that value should be passed through to child processes when zsh is used as a launcher by/for some other application. Not directly relevant to your intent, but "typeset -T XX xx" implies that xx is an array, the -a option is not needed (and as Andreas points out, wrong for XX).