From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_HELO_IP_MISMATCH,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id EDEA622201 for ; Thu, 2 May 2024 10:08:06 +0200 (CEST) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1714637286; b=OxefQ15fCiWUSWoirRqiPXLlJaxGsQrflExY46/eKEF79e0u1xXJE/vxkbuyp5B/GnyVADKXn1 36RWFAMoKCvMu+IgHP1j9afRUtFJVKXGyrn4MY+Lhv1LKFCedJPtVfS8nMpyeRdIGC1zj3vhsA PN/2gMCXJi2GmFuCgkDzh4Ev8th4Bq4fEBuGOTvranbzTNkqqFlG9Ive25nKgX5PGyO12q522e bVgvcnMU3xDB8AUq2TejHm2CaTfxWDYHvyrbuDx6TZt/u/+TNxvRwJZ02JRRszwIME6XZcZHUz aUkNjeZ4Z4vJtB2tRYDGZQ6qAgrS+PnRzCiGc6ZGqsfIzg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (smtpout02-ext4.partage.renater.fr) smtp.remote-ip=194.254.241.31; dkim=pass header.d=unistra.fr header.s=CF279DD4-6F58-4C59-BB33-73FDC6DFC1E3 header.a=rsa-sha256; dmarc=pass header.from=unistra.fr; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1714637286; bh=IEuNdDCcXyfvGFgKqOUQHRQ7KajlLiPumZNGEJs8DPA=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:DKIM-Signature: DKIM-Signature; b=bb4lV6vbILja7vv9dPXQpjA2lH0eYK2qOBHEIhjSKWEd8+VWowJQd/Kq0RsLwrqa5FSWorAUA1 4XdOm1GbASiUEXvFzEK9dKHZVL9EtSAXQZSXC1/lirvTPOC9AVITJRGV9WurqpPmRvSommCn0S uKzjUBe7uzZwosjvnhvR7/Eb+vhgVLbLiFXUdJMysqog583xJX/ZUOmE9zYXdgYlS8D24joW37 ObgMCMn90/UTlDPPM/ilQ6HHwmua9Y3AotKd3+IwxYLGTSjs77Oxc2yKbzVq6nV2cEyTaVHuJj 0+OikFWrG7NGa2lsUvrODj+7eBSLvocySQwe/RnEh39TIg==; 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:In-Reply-To :Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID; bh=e+J2g4isxfk2WMyIj4ogsNE5hzWWB70BsranmW/OtkQ=; b=NB3BfDiN90BmzHl2cj8pwWE9o+ SWN3KaHVC9Q6UCNRbZl6M5FsXT2JfWiCWY63igx86mLjLwQpSo8e74mZ5I9Y7daIPa3sM0mYTNUFk l1s+xujtihcYDMnANZqKlnWd9Gs48fe3rHJJtx/v71lqxIIOsD7swkanqOim1xQHSoD8Xy77QrEm9 5jI1E07oBep/XYrnaqMyFdzPZX6e69fxLe5fCMMIENAPDRLHsUfthXgPm7nGnG6YLMoU5H2fnJypJ Pzm7wkkZuG0+UfBJonACRXDqwGmbrJxkCTtBvcUGZNTbeYRi+53eX8k5kcobXlzsfXLvu7Wzqmq2N 9j+OiNbQ==; Received: by zero.zsh.org with local id 1s2RU4-000L3z-VH; Thu, 02 May 2024 08:08:04 +0000 Authentication-Results: zsh.org; iprev=pass (smtpout02-ext4.partage.renater.fr) smtp.remote-ip=194.254.241.31; dkim=pass header.d=unistra.fr header.s=CF279DD4-6F58-4C59-BB33-73FDC6DFC1E3 header.a=rsa-sha256; dmarc=pass header.from=unistra.fr; arc=none Received: from smtpout02-ext4.partage.renater.fr ([194.254.241.31]:54314) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1s2RSr-000KOl-TF; Thu, 02 May 2024 08:06:54 +0000 Received: from zmtaauth02.partage.renater.fr (zmtaauth02.partage.renater.fr [194.254.241.25]) by smtpout20.partage.renater.fr (Postfix) with ESMTP id 36F33BFBB0; Thu, 2 May 2024 10:06:47 +0200 (CEST) Received: from zmtaauth02.partage.renater.fr (localhost [127.0.0.1]) by zmtaauth02.partage.renater.fr (Postfix) with ESMTPS id 2DEA4A04F7; Thu, 2 May 2024 10:06:47 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zmtaauth02.partage.renater.fr (Postfix) with ESMTP id 1E1EEA05A0; Thu, 2 May 2024 10:06:47 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 zmtaauth02.partage.renater.fr 1E1EEA05A0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unistra.fr; s=CF279DD4-6F58-4C59-BB33-73FDC6DFC1E3; t=1714637207; bh=e+J2g4isxfk2WMyIj4ogsNE5hzWWB70BsranmW/OtkQ=; h=Date:From:To:Message-ID:MIME-Version; b=LkBedDBEc02bMrh9NjqmHvnRxYCXZRP4xYpeqqw/uz5PUEj5SmczjbOV2s1NoFhbP 9l8IgJ/KMu0EjMB6H9zgVoYLRewD0FWbbfoFXzPo8wf4/qMqrIAGjLz3Hb2QvOiS23 6dDOruzMfcrRce1fnMAaQrnPkqrmBsNEgu2bf7W/c+wcll6jugoCAecoHWLetiRiqO 28gIdm6uWIZR7HR5BiVItfqEot8NJhnzwTxwl9fUH053qT55v1D4pW1RyodNe1zulZ H2Pi0ZhL1OZZxl1Jfkp1MQ83bHv2bj8WvC9vq3tBN3R3MyIWpVqQOssrbd9bR29FLo 61T8gpCD/KIjg== Received: from zmtaauth02.partage.renater.fr ([127.0.0.1]) by localhost (zmtaauth02.partage.renater.fr [127.0.0.1]) (amavis, port 10026) with ESMTP id JirJDWCof5NK; Thu, 2 May 2024 10:06:47 +0200 (CEST) Received: from 82.67.52.52 (unknown [194.254.241.250]) by zmtaauth02.partage.renater.fr (Postfix) with ESMTPA id E2AC0A04F7; Thu, 2 May 2024 10:06:46 +0200 (CEST) Date: Thu, 2 May 2024 10:06:46 +0200 From: Marc Chantreux To: Bart Schaefer Cc: Zsh Users Subject: Re: A way to find a bug (or explain a missuse of) realpath expansion? Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Virus-Scanned: clamav-milter 0.103.8 at clamav04 X-Virus-Status: Clean X-Renater-Ptge-SpamState: clean X-Renater-Ptge-SpamScore: -100 X-Renater-Ptge-SpamCause: gggruggvucftvghtrhhoucdtuddrgedvledrvddujedguddvhecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucftgffptefvgfftnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpeffhffvvefukfhfgggtugfgjgesthekredttddtjeenucfhrhhomhepofgrrhgtucevhhgrnhhtrhgvuhiguceomhgtsehunhhishhtrhgrrdhfrheqnecuggftrfgrthhtvghrnhepgeeggffghedvhfffgeeuledvveeijedvhefgteetgefghfejledugeevtefhhfdunecuffhomhgrihhnpeguvggsihgrnhdrohhrghenucfkphepudelgedrvdehgedrvdeguddrvdehtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduleegrddvheegrddvgedurddvhedtpdhhvghlohepkedvrdeijedrhedvrdehvddpmhgrihhlfhhrohhmpehmtgesuhhnihhsthhrrgdrfhhrpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepshgthhgrvghfvghrsegsrhgrshhslhgrnhhtvghrnhdrtghomhdprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhg Content-Transfer-Encoding: quoted-printable X-Seq: 29867 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: hello Bart! On Tue, Apr 30, 2024 at 08:43:51PM -0700, Bart Schaefer wrote: > > The /usr shade of path will disapear from debian distribution > Can you provide a reference for this? Web search is clogged with > reports of accidental deletions of the /usr tree, etc. https://lists.debian.org/debian-devel-announce/2023/10/msg00003.html https://wiki.debian.org/UsrMerge > You're trying to use a glob qualifier form (:A) but you're not doing > globbing, you're doing parameter expansion. I was globing to remove non-existing directories. But let's say it wasn't intentional: don't you think the result is flawed anyway? I mean: I don't understand how the same expansion on 2 identical elements of the list can lead to 2 different results. > > dpkg-buildpackage?) > > * run a gdb session and start to explore the code > > I think that would only confuse you further. That would be like > trying to learn programming by disassembling a compiler. I had a lot of epiphanies in the past just by dumping the call stack at the good moment. The possibility of this way of learning really depends the way functions are writen (atomicity, name, =E2=80=A6) so the underlin= ing question of my precedent mail was: "is the code of zsh easy to dive in"? > In the example here, I would say start by understanding the order of > operations from the "Expansion" chapter in the doc zshexpn is by far the manual i spent most of my time! --=20 Marc Chantreux P=C3=B4le CESAR (Calcul et services avanc=C3=A9s =C3=A0 la recherche) Universit=C3=A9 de Strasbourg 14 rue Ren=C3=A9 Descartes, BP 80010, 67084 STRASBOURG CEDEX 03.68.85.60.79