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.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 5390 invoked from network); 26 Jan 2022 11:32:58 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 26 Jan 2022 11:32:58 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1643196778; b=phCSRtLgdTL+cdOgUyUBDlFn43sgZ6kxSbz13VY7BABOkea5YsxKnGjzGpCg0jNfZxqU4WSdtZ 7MPKiXxmX8PNi13uN0hJAoHUvQe5fZae6CHS+7XV9cl/a3WSqIOMOfvDCoCNkj60vaCW9/86np Iq4UTZ7q+or/tzVal3/m8WJky+TanaIWq3sY6B0WvqZ64Jq4okUU8ZF0tkA6Ty9Bf/jdjQ4fQq +LTMjd5yQigH5aANbHZ1z8B00ptflUlklmSbDcYify9ciV9GA8g6ccsBbhqQPBHGWdzYmM4gdO tKOEqdTVWJB+YTJhUeQSwryYDUSW8y4pyjVtS1cn7Fblrg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-il1-f175.google.com) smtp.remote-ip=209.85.166.175; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1643196778; bh=hEjUCc9svGiqZ2Gczh32PimNx96+Sqg01w8+hjdQmFw=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=CN1ASB1UnKMC8tgHnU39hsUq/OfzUY9qYoQjY2p+rALB+filzJpX6xB7by/De8QeMltzOt4k0U +XOq+yOKfNj6UiGMd8SGR56+j4dbupDzhxLMgeCFpoqRZJJhXPHbhXmw5xpFnG+Kmjw4K/ZDLX NtZx2pWDv4g529ZQyChnlWeKK/TJJJ6xZFZBwLDqrSimUmuF8uzR97VCBbHqLi34bwM/iUzm5K TMw1A/BBJ6BVBfv8Pbt/BNoBZ/eZUmJuFDW7NabG90YnLvNRpQR/AWE6ww0f1l+8e91aV2yHJU Xe7X2DlKs30y0EcUvY0tcD9HEOpBTMboPN1ZBsGIoVwcEw==; 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:To:Subject:Message-ID: Date:From:In-Reply-To:References:MIME-Version:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=JV+SlCRuVF3rvTlO9ve/z1sKJl1XXsVvGVylFpKkCAs=; b=eyWt/vJi1TJ8hmVyn0RPVtsDyd Jeiy344LFe+fYjuLdp3FpocWD/FPiEz1849/RAFBMFeqZWFOi2qbMQzrKvuUi5nNDoNkj+S2XKF+G ELm090FL+YOEMD5CCRq0j1Fh93zz5kFKsJkOUKRCJNPmw3PLagNvca1h7REQ4+KONiX3mExuz50o+ 438vMAStM5vC4VEcGWjptHo/yr53qEhUgErV4rhdQnuwWTThylB25YiXHf1wE2pVYg2bDCljQWe+O Lz+ZTUndgWuklouVNGfTB+wEMYi4pyo9ZKxwIQS9eOOBSq+7nEXPEEY23JeheJtexfIurZ4e6C+65 JhCSF7Lw==; Received: from authenticated user by zero.zsh.org with local id 1nCgXp-000Ls6-Gi; Wed, 26 Jan 2022 11:32:57 +0000 Authentication-Results: zsh.org; iprev=pass (mail-il1-f175.google.com) smtp.remote-ip=209.85.166.175; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-il1-f175.google.com ([209.85.166.175]:44783) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1nCgSJ-000L5Q-CG; Wed, 26 Jan 2022 11:27:16 +0000 Received: by mail-il1-f175.google.com with SMTP id i14so19284973ila.11 for ; Wed, 26 Jan 2022 03:27:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=JV+SlCRuVF3rvTlO9ve/z1sKJl1XXsVvGVylFpKkCAs=; b=pti5IEaTR5Y+WkCWRqXMlVWbmpEBmmfsdJzhHa/GVgDuqv0S0CV/GSx0I1YU632j4d nEMN8gJWKKJ+I6mNJanBUEL53/Dyrc2/gcwS7MHNSiHnJQtfku30JIJr/JkVIh59FNNG eZ2ldGtNhR/dGjcqsYC9mVBG/IOxwwHvTEpZGblBjMe7fyuK3EQEjjif2rmHw6mTxVuW J9kqCUFRa5Zpuia5euhgkTasnUhegBsWmfLFqH7LXM/V/ST3j3V1w0pEyrK8v3Px2s/8 OZY7icFiillh7Ghl6OE2m+v2zmcS/SjykroHU7JNYaptqInaZznl+CcJx16MLRWYSZY4 wAHg== 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; bh=JV+SlCRuVF3rvTlO9ve/z1sKJl1XXsVvGVylFpKkCAs=; b=0xrYWvYBc9PicUzO0rinqz0O72OMzjG0lK9n+Z/97WjQLzuNiAUUM16YAI5UJmIJr5 VCC/e+IKVLkK6Axa8IXYysIK4lLEdcLwTgECHovJgQnqNILC51G+OfYo1x5EhfQpjRjN 32fL3wc1kyPY2Gporjl3fJkWB1TpkbGj+X8w+S26uYF+gJmCE3Gm0sTafgJ4wSFgMGL7 rna4omzkawkRkjpEMSnQnT5i1w6Np1oWvS7QX9UXq8DrT/D1NAmc6g3Tjx7O9dEelR61 8gICp2dw7jFLWm+HZV5GZYon0YKisJaUskAjq7+OyrBwGWmbD17vriKZ+PBc5nG1xp4q Nh3Q== X-Gm-Message-State: AOAM530FdGPYTwOA0Mo/JVEYvg7WFUMIVWJImAkKfql57k1sugiasdtu 2CVZ2O/52YRsjJN5MkZOvWfD5nwHlkv3DSNv8F8= X-Google-Smtp-Source: ABdhPJxGDPSFi4nuhO6BwfvsqjBc6C2jcPo8OM/gc55oLZBbJe9btZ5CHiU0wakOET7+gvduUcCPpV3ITxerxJpt9IQ= X-Received: by 2002:a05:6e02:1d1e:: with SMTP id i30mr9179882ila.122.1643196434019; Wed, 26 Jan 2022 03:27:14 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Pier Paolo Grassi Date: Wed, 26 Jan 2022 12:27:03 +0100 Message-ID: Subject: Re: completion of path with double slashes To: Pier Paolo Grassi , Zsh-Users List Content-Type: multipart/alternative; boundary="000000000000bef9fc05d67a7bb0" X-Seq: 27494 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: --000000000000bef9fc05d67a7bb0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Great, thanks! Il giorno mer 26 gen 2022 alle 10:48 Andreas Kusalananda K=C3=A4h=C3=A4ri < andreas.kahari@abc.se> ha scritto: > On Wed, Jan 26, 2022 at 10:02:37AM +0100, Pier Paolo Grassi wrote: > > Hello, I noticed that having a double slash in a path that I then try t= o > > complete, ie: > > > > /home/paul//ab > > > > requires a significant more amount of time to execute than the same pat= h > > without double slashes. > > I tried this with zsh -f, and it does not reproduce. > > Is there a setting that comes to mind that can be responsible for this? > > thanks > > > > Pier Paolo Grassi > > If you use compinit in your .zshrc, then // in a path will be treated as > /*/ when doing filename completion. > > Look for "squeeze-slashes" in the zshcompsys(1) manual. > > squeeze-slashes > If set to `true', sequences of slashes in filename paths > (for example in `foo//bar') will be treated as a single > slash. This is the usual behaviour of UNIX paths. > However, by default the file completion function behaves > as if there were a `*' between the slashes. > > -- > Andreas (Kusalananda) K=C3=A4h=C3=A4ri > SciLifeLab, NBIS, ICM > Uppsala University, Sweden > > . > --=20 Pier Paolo Grassi --000000000000bef9fc05d67a7bb0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Great, thanks!

Il giorno mer 26 gen 2022 alle 10:48 Andreas Kusala= nanda K=C3=A4h=C3=A4ri <andreas= .kahari@abc.se> ha scritto:
= On Wed, Jan 26, 2022 at 10:02:37AM +0100, Pier Paolo Grassi wrote:
> Hello, I noticed that having a double slash in a path that I then try = to
> complete, ie:
>
> /home/paul//ab<TAB>
>
> requires a significant more amount of time to execute than the same pa= th
> without double slashes.
> I tried this with zsh -f, and it does not reproduce.
> Is there a setting that comes to mind that can be responsible for this= ?
> thanks
>
> Pier Paolo Grassi

If you use compinit in your .zshrc, then // in a path will be treated as /*/ when doing filename completion.

Look for "squeeze-slashes" in the zshcompsys(1) manual.

=C2=A0 =C2=A0 =C2=A0 =C2=A0 squeeze-slashes
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0If set to `true'= , sequences of slashes in filename paths
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(for example in `foo= //bar') will be treated as a single
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0slash.=C2=A0 This is= the usual behaviour of UNIX paths.
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0However, by default = the file completion function behaves
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0as if there were a `= *' between the slashes.

--
Andreas (Kusalananda) K=C3=A4h=C3=A4ri
SciLifeLab, NBIS, ICM
Uppsala University, Sweden

.
--
Pier Paolo Grassi
--000000000000bef9fc05d67a7bb0--