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,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 25821 invoked from network); 26 Jan 2022 09:49:10 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 26 Jan 2022 09:49:10 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1643190550; b=c8CkbnqqdvUeQHMYNz8WbBAsUjdPoiwxUv3wx/UL9wiWZjYuACdBgk+8yiTrGk+NbiPHUOrxab MjrEfOnPEU4DTDct11wny75O6/E6Qc+iR8fvYq01VmQKS+58NnqOezsFpZ9v3E8lCKsoP1/sCx 8619geHSLocNFIl/ZfemiMHjKYLVDeZud56+XrbUHB9H7tCg24/HDdx3XLDv6PfCowRiqKoc4p vDBNT6aBV7cqZcZpuaNG+sPHkdCf1aHYCQm9hS2nIjh5k/3ygXkJx5/QknLiRhFB0eLLuGUs5N rz0DYi+L16WUN+QQryzQ55YYYoOi0PhXZXldg5cKTIO8qA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (hekla.abc.se) smtp.remote-ip=158.174.61.227; dmarc=none header.from=abc.se; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1643190550; bh=C6Wj5b6+Ev8QXikAr/gQ/lsGBfo4azRauOaZUEq4UU0=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:DKIM-Signature; b=orYcNKVg3KH5VLsiRHhqGzdLZri9y7XJJ+REVWwuRk3uG5eWL8FcJDO8kucWTZXZl0QuBc1XUF Q0brtr8IseUF9v8AweZBOCvn/usRhX37kqS9PXty37oS0rtyiYEl0kbFWIttSQ70BycPlX4MVv EKafzSkEoh63iQstymcaDKCN3kyHQuYiANOqO+AOIqRh6XmTa9j4i+W+JSp2JmC7SQUdo8NHRu K8UFWot2MUpoOaD8QkJlpqLKFid64tmiICUmdf7bxGtZ+9t0+CieizfozSirgNG6628rIpP0oN Tjw4uPEqk8VGCGH5+6u07I3C8ApAuZT+0P25eX/BJfLLdg==; 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:In-Reply-To:Content-Transfer-Encoding :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=8USFGmGFqxgsm8kGfnX91P+E2VsuMrKeCM1wzXbgnP0=; b=Yq6iLEgEoLojQLOIzYItsqUY0I Lhh1/K9RRw3ES+4ugmAhhXIQTADbxCO9H1hsqkMqgya3QFcgS3bT/jMDcZWHN1IoNaOzvLRLkeZb5 HWwtyXCr1VI3vylGUTPspD8TlJdaBO05gZkCmbLUq9iksjS3P/kcYQ5XfAul2U7xPv9bp9+5Zbar/ LuwUDYPTBnolZMKmDFX71mT9QmkNIXSRQE2xXBR5p0hvMUmOnNlNYFq0AkWF8Kn1U7ewGKs311eA7 ZotwT5bcZx0I/w+ba9YAzbhYR76PN735lj4XE+GOjkRMkG7ZgtooqEj4MJo7DYw0SVoKCOGVBXc2O Wc15eX9w==; Received: from authenticated user by zero.zsh.org with local id 1nCevK-000IV7-HR; Wed, 26 Jan 2022 09:49:06 +0000 Authentication-Results: zsh.org; iprev=pass (hekla.abc.se) smtp.remote-ip=158.174.61.227; dmarc=none header.from=abc.se; arc=none Received: from hekla.abc.se ([158.174.61.227]:3785) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1nCeuV-000Hnm-E1; Wed, 26 Jan 2022 09:48:15 +0000 Received: from localhost (31-208-84-175.cust.bredband2.com [31.208.84.175]) by hekla.abc.se (OpenSMTPD) with ESMTPSA id 406b7331 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Wed, 26 Jan 2022 10:48:14 +0100 (CET) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 91d6912e; Wed, 26 Jan 2022 10:48:14 +0100 (CET) Date: Wed, 26 Jan 2022 10:48:14 +0100 From: Andreas Kusalananda =?utf-8?B?S8OkaMOkcmk=?= To: Pier Paolo Grassi Cc: Zsh-Users List Subject: Re: completion of path with double slashes Message-ID: Mail-Followup-To: Pier Paolo Grassi , Zsh-Users List References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Seq: 27493 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 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 > > requires a significant more amount of time to execute than the same path > 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ähäri SciLifeLab, NBIS, ICM Uppsala University, Sweden .