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 3347 invoked from network); 21 Nov 2022 21:33:30 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 21 Nov 2022 21:33:30 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1669066410; b=ODph8VvxhQkF74ISTaVHR5aEA78ZYNU4WMGocvr7cdlyPmyYqwYJzqNaDPETdrBvye0DULgQ3y 0+x5QEAFJD2C7kKugskklLM+FgoDjDsAJGoi/8FXo1eiQcgKdTXeU6fuC465V/p1En3vzvUkR/ FU0brMPMeFOKMnuNUmt1uAYGkofTBiZjSNByGWeHHtWk2UEqZw4rJLbBztP3G1UetZmGjtobCS 9ohpJtpmNsKMp3o+Khx74yhuSwdlJlOSvMVhb/2YSyUQ/sKl9lL5WucTLSwL5mwgN2UOwm9Tvr elw/68P05RepYR8Ik6xDqplgKRcyR6JbjTaQQfz+oKTC8g==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f46.google.com) smtp.remote-ip=209.85.218.46; 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=1669066410; bh=URO4T1GSMp1BrvhLFlBwdT7D75qBUp7W+LzTu9S2n2Q=; 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=gbNtSYqO8keXOKK8agwRxnMSGj69jQqFxbUcMNdgJ25Si5DK7J9DLzE7Qb55iJnKzqj42Nrt7G RETOfFJnq4TrZMBlK12DeGCVVvd26fj0OBQ27v42OuiJkLcYdGK5BXqVj1Pu6MUxG7tR4UiK1n 2EClBTQ6Gac1o+ZQUNjlDcYh12EQ7oqYMnnikGhHe4wXfCj8qQ9OXvLDhLqB+7aGRr4/izD87N c9aToCYaYVU6BikDgZcj0sblsosr7SOzlzbaOgUFkIQrLX0elNjY6zyvOOK+lLiVR3UO3HZF2r d2l8d08FRkjBfb2AskAsbcorEhKRqUkhrEBa6eevdeVWwA==; 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=G1W9ENYogW+4BzhHIi8F8QZZam4Dx1/CepUZ1f6Jmxc=; b=E7N/xOohQc5P+Pq5c9GobMRiWk uc5geA8ZTnHsJmrgUqJHIkqmG45jna2L/8EncG7/E6md7z0E2YnL11T1Mk+AKZmzfEJeR/QvaToAM a7mJMxR6jNRIuViVCd2ZPXAntDxrxxKiHpddFT7RCQ6pAhiACbVHYPhMeW5RUcQP/dN9mp6Tg7pzJ bUqcAuBRQx7XW1fzseBqx+mjThJtllfSRXlBV5qZMkDEcAAdnucT24ne+wu0LPMGTUsJ9uXp/XnVh sPfsgbzr1hlelA1KuCmKrwoWGlqeaiC81d59uP2OeT6lKyzfed3YJiJkVEDIelrux3eNntNKAHRaX 6ZInTrnQ==; Received: by zero.zsh.org with local id 1oxEPw-0000QU-MQ; Mon, 21 Nov 2022 21:33:28 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f46.google.com) smtp.remote-ip=209.85.218.46; 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-f46.google.com ([209.85.218.46]:40882) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1oxEPN-000PvE-4h; Mon, 21 Nov 2022 21:32:54 +0000 Received: by mail-ej1-f46.google.com with SMTP id kt23so31478467ejc.7 for ; Mon, 21 Nov 2022 13:32:52 -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=G1W9ENYogW+4BzhHIi8F8QZZam4Dx1/CepUZ1f6Jmxc=; b=VJ36lpE8bx6a+DI2IRxpBD9icKVWOJ2Gr6aUAqLhA/IbiEX5PZvhBWy4+WjjJ3In7G AOsG5Tem56Rrvad+HNrHBV4IYJr0XtDo1nT36qaEbRLQtjsrinBR70ubgZ0Gleh+UjHn +4M852y4+ewNrp5LTfXVyst4drlN+l1S0/Vqkwqq3LaGyCWDgKC3BnepI+76AQpozr20 HxyKDj3Teid2wLKxTW+hyRbQQ517/xo6RmiHPykCynPqD3FE2/TyJkHMFyAeLxFeBOVj oRA/z+wE49NwkRM6xT9rfLVN+2+kvNhhtpdkc9fuZZXnUSpn8AE6UKKdqWqF06kKF/m9 Uc6w== 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=G1W9ENYogW+4BzhHIi8F8QZZam4Dx1/CepUZ1f6Jmxc=; b=qaIkkRTl+qCsuKjKtjofWRc7v393Ya1ypM++Fzr2t2J9QYQDUI57TwF1JL+/qGu9R/ 64rYOmT+w/iyVnbejLlX2pXRvqCAzWCY4oj23Xl8qttiYnCs5pNXBEOe8W4Vm+1Efwc9 QZHzP9dyiommE6zOONb6miHvBvE14kPHQ5ikMY0fFMoXdZVfHpRS88Pi5qswhp4pqvSM absJg7R7Lx1GWoWlIB4BuLUQ0/U6XuS9q1UNcPJaS368CY9FM04lQo6Wpt+YCf+Krrmz H6JI4/VLtjusqetLD2eJOyRr1jyBjW+LPEyk/KVOPkX2MCEUmd0ZwbJ841EGUrPiHBvD UH0Q== X-Gm-Message-State: ANoB5pk0NJ3q4DYR6lWAvPWHRHN7BTNRk0/YORBKdDbcGFenjB7D6BOv qZ0PQsJ65C1rR/pgtR7F6njODLxugkp+BKS9mJJ42w== X-Google-Smtp-Source: AA0mqf6jF/tKLOX6BqZs932lr0TKVngcHzE9MLlMrheXF+I7yMWWKsSGItlvM8d9EoQcLywfoNYAFJxXFzrZePAds9k= X-Received: by 2002:a17:906:4e4e:b0:7ae:e6ac:2427 with SMTP id g14-20020a1709064e4e00b007aee6ac2427mr17150534ejw.345.1669066372230; Mon, 21 Nov 2022 13:32:52 -0800 (PST) MIME-Version: 1.0 References: <45820bd7-fab6-70f5-5abb-dc444f6f1075@coldfix.de> In-Reply-To: <45820bd7-fab6-70f5-5abb-dc444f6f1075@coldfix.de> From: Bart Schaefer Date: Mon, 21 Nov 2022 13:32:41 -0800 Message-ID: Subject: Re: Path with spaces in _canonical_paths To: =?UTF-8?B?VGhvbWFzIEdsw6TDn2xl?= Cc: zsh-workers@zsh.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 51019 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, Nov 21, 2022 at 9:41 AM Thomas Gl=C3=A4=C3=9Fle = wrote: > > + local -a tmp_buffer > + compadd -A tmp_buffer "$__gopts[@]" -a files > [...] > + matches+=3D( "${(@)tmp_buffer/$canpref/$origpref}" ) > else > # ### Ideally, this codepath would do what the 'if' above does, > # ### but telling compadd to pretend the "word on the command line" > # ### is ${"the word on the command line"/$origpref/$canpref}. > - matches+=3D(${${(M)files:#$canpref*}/$canpref/$origpref}) > + matches+=3D(${${(M)tmp_buffer:#$canpref*}/$canpref/$origpref}) > fi I'm not confident that's the right fix for other examples, given the "Ideally" comment there. Daniel, you were the last editor of that section of _canonical_paths but the change appears to have been related to its use in _mount (where it is no longer used now). Any comment?