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, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 560 invoked from network); 20 Apr 2023 12:10:37 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 20 Apr 2023 12:10:37 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1681992637; b=EV6qdFEvPj1UpqwHapkgnH5SBMKETYj/MlTS/9qyvY1HGPOUJnEn3y/K6kQw8aofZCg1mdQQ1i pHmGG20svMkh8OISvV7rncKO5TITgsxfI8pahWBcOExbfGlQfl+VqoitGOWwVU+cRNF0q4ydvP Z+OQ26ZVtzVwQG4jSQnbciBMCCJ+622/qmFxM7IgKCMkcFb1ldng+0PLvtuAJbp3TkI+lfU/Jb b/rkVqEEKjp/RpojoPlLs2vmxnUAtoNrklOE/v/67TTFenXmBbXLwkjzqYTdZqzoEvdLqn7/mi lUVso/wOJ5uQnHd53yBB9zo4YayP1tcQMcQSIpQhD4K2nA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lj1-f172.google.com) smtp.remote-ip=209.85.208.172; dmarc=none header.from=lonke.ro; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1681992637; bh=xJ7r8SHoTN7QOrht2Tvp9mcxp8M3sNXDxEkzVtduvJM=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:MIME-Version: DKIM-Signature; b=dgvKGZQh4Q3/eyIQtnUMu5SHYcOqvOILBWJGX6h8U6iuNl046LLLD0phu64HWvBlRTbvov8V5q Yb7CjMno/qHRGLYrYFUpBj2+s3AnCEvozodt7aGJUy/Mdwu/SV8iQ32++D79ZQ+Op6ysutY6P5 V1dKkGPgB+KMTBg8HBvCQks/SZahyWTEnnjA4d5zQdjxBIOBu6sU4sHh+/PLDLw/w3lA+KpEVa HcnkZ+Xyx2S5xS7M8rjFAAvVe90UspHZdH6uo2hClOfgO+i3WzY45haB0ltwVnJ8OfX3+gnfWd 9R8kAbzIHWbgRUJMKy6R8CHWykmbISfuB62INSrfYMxJYg==; 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: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:In-Reply-To:References; bh=pcbVpqfRAo1i4pdccdKvhYnSm/dO5sAFfXPvTYZuDSY=; b=ppDBYkc9d9CWrMNtY5YK1BHxW+ TcjC6LEKvXDURLXRpAA16DmwNbTx0xr2tppYQAvD2anttIU02c9MVnOSegTfhb2v75aNGTkGghmNZ hN5Q1VgWI113uPd/qkKOURdP+WTvnqKX6qfoaQsSooZaTNmSnZ4NaCutOs4M3eg05ikamSaTktJqW JmX5eLnV7iYXEm7iqIW004EDOe4hvEAfmiucXonermWOzFDDL0bsvFcE5G63U+Z/2g2wiiUcQ/X4X T7D8RyQJZ04yTDPcWrg7R8nb8UmhtbKM3L0BvejKt6ot35J5hQCERrrm/bGzkTbch5h954aJlC/98 JCGTeMzQ==; Received: by zero.zsh.org with local id 1ppT7T-000CHE-A5; Thu, 20 Apr 2023 12:10:35 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lj1-f172.google.com) smtp.remote-ip=209.85.208.172; dmarc=none header.from=lonke.ro; arc=none Received: from mail-lj1-f172.google.com ([209.85.208.172]:47005) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1ppT64-000BZ0-5Z; Thu, 20 Apr 2023 12:09:09 +0000 Received: by mail-lj1-f172.google.com with SMTP id h2so2451055ljh.13 for ; Thu, 20 Apr 2023 05:09:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681992547; x=1684584547; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=pcbVpqfRAo1i4pdccdKvhYnSm/dO5sAFfXPvTYZuDSY=; b=dj5xJ8Ghx/0YazEPPkpGXvInu0LhjZt7YmBC1UREnepBoJSaIK0Xv6hCAmbrg5a25E ni0KzQ2Zl6BRi5KxGTmrvUcupsJnLlohUckC3UDh6SC1tvgqIF/5JvIkiZ5Vixz1+xI5 TL+HIToa5mH6SHz/cGAwD/2eB0EOGmJnP0LyIz0AKoFQ57vLjirAokwXlfOI4ulivgqi pjs1fSBa0cgZPEWtgk2xo7PtsaIgQY/tHuCon7rSp0Reo0ay/T1PcvZ3Cx7aybYMpzkA BX2BT6y9jsInvWERwjtEYt+Wtco1DKj/E/TXJeO2urydV7ltZbLaTVI3ViL/F+Qdbo9s 6Mcg== X-Gm-Message-State: AAQBX9foBekL5uh6ooTJGnml5YxWSrpzjJNa8FZK3Lm//b/lGC3TL5V4 rimbHI20F4YtK/vWnk/rgNEbpgslcrmE4hJlIFpUEJNCjG7ltA== X-Google-Smtp-Source: AKy350aqFqNIO0LVQ/5AvwaHxVTCZsIpESPRjPNAe36n9nwYMqcaaNEMFrCZ/YXt9tby3p3y4aeY4Cj6RTlbX1TfRSg= X-Received: by 2002:a2e:a9ab:0:b0:2a8:dc89:118e with SMTP id x43-20020a2ea9ab000000b002a8dc89118emr2396920ljq.4.1681992546916; Thu, 20 Apr 2023 05:09:06 -0700 (PDT) MIME-Version: 1.0 From: Ville Viitaharju Date: Thu, 20 Apr 2023 15:08:50 +0300 Message-ID: Subject: Autocomplete doesn't work correctly on certain folder names To: zsh-users@zsh.org Content-Type: multipart/alternative; boundary="00000000000046213c05f9c36816" X-Seq: 29050 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: --00000000000046213c05f9c36816 Content-Type: text/plain; charset="UTF-8" Steps to reproduce Install zsh and ohmyzsh run mkdir my-longfoldername-firstname you-longfoldername-secondname type cd long terminal shows "cd O-longfoldername- " instead of trying to autocomplete. Expected behavior It should autocomplete like it would in case of: Install ohmyzsh run mkdir my-dir-2 your-dir-1 type cd dir autocomplete works as intended How to reproduce with docker: Create Dockerfile: FROM ubuntu:23.04 RUN apt-get update && apt-get install -y zsh curl git RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" RUN mkdir my-longfoldername-firstname you-longfoldername-secondname CMD zsh Build with: docker build -t zsh-test . Run with: docker run -ti zsh-test cd long will produce the error while cd fold works. cd old produces another error (cd F-longfoldername-), so 0- isn't always first character It seems that this doesn't happen on archlinux or macOS. POP_OS/Ubuntu seems to be affected, so this seems to be an OS dependent issue. Issue tested in zsh 5.8.1 and 5.9 + latest ohmyzsh More info/discussion here: https://github.com/ohmyzsh/ohmyzsh/issues/11621 --00000000000046213c05f9c36816 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Steps to reproduce

=C2=A0 =C2=A0 Install zsh a= nd ohmyzsh
=C2=A0 =C2=A0 run mkdir my-longfoldername-firstname =C2=A0you= -longfoldername-secondname
=C2=A0 =C2=A0 type cd long<tab><tab&= gt;
=C2=A0=C2=A0=C2=A0 terminal shows "cd O-longfoldername- = " instead of trying to autocomplete.

Expe= cted behavior

It should autocomplete like it would in case of:
=C2=A0 =C2=A0 Install ohmyzsh
=C2=A0 =C2=A0 run mkdir my-dir-2 =C2=A0y= our-dir-1
=C2=A0 =C2=A0 type cd dir<tab><tab>
=C2=A0 =C2= =A0 autocomplete works as intended

How to=C2=A0reproduce with docker= :

Create Dockerfile:

FROM ubuntu:23.04
RUN apt-get update = && apt-get install -y zsh curl git
RUN sh -c "$(curl -fsSL = https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/i= nstall.sh)"
RUN mkdir my-longfoldername-firstname =C2=A0you-lon= gfoldername-secondname
CMD zsh


Build with: docker build -t zs= h-test .
Run with: docker run -ti zsh-test

cd long<tab> wil= l produce the error while cd fold<tab><tab> works.
cd old<= ;tab> produces another error (cd F-longfoldername-), so 0- isn't alw= ays first character


It seems that this doesn't happen on arc= hlinux or macOS.
POP_OS/Ubuntu seems to be affected, so this seems to b= e an OS dependent issue.

Issue tested in zsh 5= .8.1 and 5.9 + latest ohmyzsh
--00000000000046213c05f9c36816--