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 8216 invoked from network); 2 Nov 2022 03:12:06 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 2 Nov 2022 03:12:06 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1667358726; b=gwstX4Yv/m7yT9xCrRftwOS1q0dICL7lZNsMtkrq4jNm4E+HZFQ2x/Bvw2a0nUVA79TImZGREQ FIfLyQTI0/nDpc+Zp3pdXR0s/WegwqZLmcK/ARs4MriHhn1oW97KNDaMERp5lHnlhax6qvOtiz 5SxCjdLmX5W0sNGsuA5gm6dLsjcwrCkvJozwsyQF3DrCf/UtFZHkb28MRFzGGmxLcdVlGGwFFf loYclstlR+0AWHe7PouD8d7C0QYw3cK6KDCXH2/m9avZzHwrnha4vSSgrEurRx1qU24yRcNLP9 FI/rwOinglEHGigQmmHGdePSRcvzg3V2KysW/Cq/hJvPPw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f51.google.com) smtp.remote-ip=209.85.218.51; 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=1667358726; bh=0aI9f41MBilzZFRpt2W0xXtM93T2P78b2XZpvzI6dfA=; 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=GnzrXwBjO4UcnDh78mLtMMK9qQhQ03Go7I/MNruls5bB71z9ZezsB0aidLnqBbDyC4wQ4TXulV Sp6fm9SGIUYewU6whhwwQB4N2VAHuvPWjk3JrW2P30uo7W6q5R4ArTGtqbi+y/7n2Ygc9GmHXJ 8vs0mRQy27UDoULc0GOUvPPn+7E3QenP6o3jnTaqa2DzGkc7zBwWMQEh9fGmT1Znkq4zEHOcW4 fvYetgpubfZjyDbNsQPx9UarZ96UhorAMNjputiwkiFD42yn8okoYu18H4XOGztNfIYRdqKmGP zIYd5/EL0y5/TPpYGJ1k5Q1O9P2H2kmNZQTmpMPhSge9wQ==; 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=dn9mTmItSes93V+ISquwlxzeLf/nEzkmYHvxMW4FNyA=; b=oTGEFEvQAOnWau+lhfRueehhYB iOACh4Q67qKFXn/ED77gKs7Dlj4Eoqmucot3g12rdc1ox8oRO8KCuNorZkYqT0XhJrX0Q+KqZxYJX ZDF8ymapxjlOOXer5bThCllowByhatJcYg32jstQdSvTVD2ayKHkciiI65rMYhkYH4I2dRY9gHgiJ jm8nxdlv9L3HxeEFKQFlI+p/Pj+hnf6jokGM4tlgdc+l69y0M3bl0mwsAQjwJAApi6HsMIP7tm6y6 buPRsgCkgPnV+VS4khYp6SCrIGJjFbQebfI1U+x6k8G3c/9/qaz08pZa5sHmBjQCLpSi9SL4ax9fn DivRGp6A==; Received: by zero.zsh.org with local id 1oq4Af-0004JP-BM; Wed, 02 Nov 2022 03:12:05 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f51.google.com) smtp.remote-ip=209.85.218.51; 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-f51.google.com ([209.85.218.51]:42999) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1oq49f-0003bm-Bb; Wed, 02 Nov 2022 03:11:04 +0000 Received: by mail-ej1-f51.google.com with SMTP id y14so41946053ejd.9 for ; Tue, 01 Nov 2022 20:11:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.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=dn9mTmItSes93V+ISquwlxzeLf/nEzkmYHvxMW4FNyA=; b=KflAz3+YNiBCXy2uwmJNCuht2zSn/L5638j7t3DLlNN/EWMsDQdmd15TQAgnRzvXeM jbWc5dnDeaHU8k8eL0WGI0/ycBUnY435hIPS9Du1RlJjpdK6fAbj3dUBg//L2pMSuChT UFncVF2Vat7AS5w01M6Yv8G7WiIkgVhKXpi4+YdBD7CetO/y2u3KljCRcIh9AGqolvNW z9MeoPhLYy6M7KjubdaKWfR5o4ZqMsFClMviJQ8/wO/enkhcuAzcxOOR7MIatwKiDcmV 5u8peGyip2WiZ+ADgoLv6IGMclYvyyLNu2ZVqFW7NJ+DVrPv2CIipUXaCbRovmXidSHC 8wKg== 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=dn9mTmItSes93V+ISquwlxzeLf/nEzkmYHvxMW4FNyA=; b=HVrZw2dDH3sT7OroDAjQ5ZYA3KnKSYCWiYMMv0aahcw4c1Am5UETldFqg7Q1QbZl66 im/ivHhltzz0eK2sI45QvsNuhq51h6EuDVfSsaiDjkpbzSFZTHywcXaPLUaA9JaR+3lA aFyMcx3jpvGMqAPtikt75BR2bUJleJQ2sUL+H2XGKnxiAhil4ACoWJR9/PUhnScPX8+V iaeH8g70MKiHHxkqphEFPeedsdRxS/AIaGMtdSlhqvYmtD1SuJ5w5Iu0Zw1MXj5SxoMg 7b8v//SLNKaBOOcSIfousL9/ga22TqrZK61VB/SzXVHsBNDV0fcHTFpZgeD2lrShg6Jq /WwQ== X-Gm-Message-State: ACrzQf36quZNo98FxXTQOyPaEGohTbVrFtNOL9Hw7LcqVXIXOZgDFT4p aKJZh6giR6OLsKp5QXEnXmuRGhyeCXgec4FOkiaPejRvqyI= X-Google-Smtp-Source: AMsMyM4PN8ksevWUUCd4cu96L8OqTcdMe8bIOx31A/vgH1KzeVnB31Hl4gdrrc+U5tAOq9Qbe+5gkOdHAI0VNEXdNao= X-Received: by 2002:a17:906:4717:b0:7ad:c606:349f with SMTP id y23-20020a170906471700b007adc606349fmr15829778ejq.214.1667358662545; Tue, 01 Nov 2022 20:11:02 -0700 (PDT) MIME-Version: 1.0 References: <5f18c162-e111-21ba-3ebe-ece09a477ecd@eastlink.ca> <552657de-31ce-255a-bc8d-7c9cd4b8eabd@eastlink.ca> <530b18d0-5e72-6afd-7448-cdff9c119bda@eastlink.ca> <9712ca3f-76f8-3aed-0a40-c6269afb73ad@eastlink.ca> <69b46d22-4430-ddba-4b21-a220b4816438@eastlink.ca> In-Reply-To: <69b46d22-4430-ddba-4b21-a220b4816438@eastlink.ca> From: Bart Schaefer Date: Tue, 1 Nov 2022 20:10:51 -0700 Message-ID: Subject: Re: "typeset -p" inconsistency To: Ray Andrews Cc: zsh-users@zsh.org Content-Type: text/plain; charset="UTF-8" X-Seq: 28317 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, Nov 1, 2022 at 3:46 PM Ray Andrews wrote: > > On 2022-11-01 14:40, Bart Schaefer wrote: > > It doesn't actually re-create anything right then, but the definition > > of -p is "display in the format of a typeset command" > Still I just wish there was some simple way of displaying the state of > things without the pseudo re-creation. It seems like a simple thing. paste =(typeset +) =(set) or perhaps (following is one line, gmail may wrap it) print -lr -- ${(*)${(Aok)parameters}//(#m)*/${(Pt)MATCH} "$(typeset -m ${(q)MATCH})"} (Use "setopt extendedglob" instead of (*) for zsh before 5.9) > >> fignore=( ) > >> FPATH=... > > No, I mean it seems a bit long and a bit belabored. I'm just saying > that I'd expect those variables to be set to standard internal paths The internal value for FPATH is determined by the build-time options to match the install locations of the functions. There are typically two options: Place all the function files in a single directory (which results in a short FPATH but possible name collisions) or preserve the source tree directory hierarchy (which results in what you saw). The latter is often used because then it's possible to (after the fact) omit directories that are not relevant. > Come to think of it, those directories are in the 'fignore' ... > are they to be ignored? Please disconnect fignore from FPATH in your brain. They are totally unrelated things. You may be thinking of fpath, which is the tied-array equivalent of the FPATH tied-scalar.