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,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 17015 invoked from network); 10 Nov 2022 14:57:10 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 10 Nov 2022 14:57:10 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1668092230; b=DBgWtaSukClFmaaaY2oq/AH8G9V2ZsZkdWd+KSMoKVB2MxijllKM9tDQ+Obu0j1S/l/LFZkZZa tUXCqeHvkYRzAijsDQo7P89awLPJLLCtr3TrIMeGiECirRZ9oY82jS82wJsnt3tIWwbVkxSOtk UOy2poSSiShC43pZBgU9v+pmeyVHs9Irf1EX63soOQWp6lve1LNs/n0riP99ftjtPXkjNjKU6U WARjD7fkvom2IsUKPQhqM4ZvhqjRO6JLcRiDqZ9VbDKA+MD/AlS6II/TQ14W3M7133JrY6EGy5 jycIEdSAIzfbye5X4t8foc2as6EIrkLj/1bvwuyuYeB3HA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lf1-f50.google.com) smtp.remote-ip=209.85.167.50; 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=1668092230; bh=QWjEbndiFAGo+RRfN7hIqO9mepzP5UacKSgs/HjHMp8=; 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:DKIM-Signature; b=i6wE98OcSscdcsgj70MsbrsYT058AOnzTFUP/z5Q6fRsnaUWAy5DtqBIQxYPoD6sResFbcx2sB N+ScF+qhA4MpnFGYUjF+Ab/pofiJ9lM67gwu5yst2BCZlJGMJdz0Pp1XM7b0U6Iq3xs5IXnVNg g2DwJvuBtQI+xTRgY5vpgEmqnFAN+o1M+LzYDM6SYa4AIAXaY7ReC9aTAL6YhoRhUDFFXjc+Ah ucw+xQxThD+ZGkdoTD775ln7HiRDDXEF50X+mCWExDoYXyNpzj7IDHV0k+9nfTsFkAx01Si1FN jmIAV7jlJ8EERB2IzDXeQBNzr0dj3lXIHxhTR4sI+f8URg==; 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=PCpjiF/lbC2ZJe51GNxPMSRE9yNwvcdhO7/Me/Oqduo=; b=sWgOFP06jMRh2Ay9vjCaA1Q2ca /z3KLs519z4sk0q/cC3H7VpIm/hpe3sBAYvAAToYba4BZiMeozwWLmWerTJPWyEy/+EKMsWYj+ZKw 0pQWYryJUQ3Ha9GpLkhGyIze5fQubWb5NPZxZayayt/E9ya14/QBbNo+6ivUyPr9k37JELev/KlkI v1PJKLzWdybVgRxXKzuvoBCO526WU076lxeq8kdXF02XF1gDw/Q5by1EMq5GlyNSNZz/wZrGabkao hgxEEN32/3qarWUhzDVag76UBROwCKL9ecTmuSgxT5dVzebHYidH28bfwTO9ymbv+JPSvhaJtGsFi bOPOC2MA==; Received: by zero.zsh.org with local id 1ot8zN-000ICg-9c; Thu, 10 Nov 2022 14:57:09 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lf1-f50.google.com) smtp.remote-ip=209.85.167.50; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-lf1-f50.google.com ([209.85.167.50]:36783) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1ot8yh-000Hsn-2z; Thu, 10 Nov 2022 14:56:28 +0000 Received: by mail-lf1-f50.google.com with SMTP id g12so3746274lfh.3 for ; Thu, 10 Nov 2022 06:56:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=PCpjiF/lbC2ZJe51GNxPMSRE9yNwvcdhO7/Me/Oqduo=; b=WJIZow7GGMXGgjFWkDIJyDjEeYWXOJUYtGg8UnMpURr8uv/DQer8r5sjETJZsqrdD+ 6tBqHrd5rtQJuD6OsNL9RGinrvkzfVWKPRD8sOZWZHAKdzg5eUj0RI5Stg6r5FZNV/Jy vKyhOeU76LRpiYDVsw9msPbg2ZHF/4rSX4cGKY5/0jIc+6cPfa2QskaKX9JpVD91RL00 9AYOlP22JVdFEJOhSEEnpBpK+jeOxy8kwcMuQs16ADEoS8MqJW15lrlEepvUKm5LxOfI +zrMigyydmtcvNwZS7DJqdpx4EPjaQdXsXFmKC7I60cE2JgaVV35eLPwRUPZ59QeIr9c 2NXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=PCpjiF/lbC2ZJe51GNxPMSRE9yNwvcdhO7/Me/Oqduo=; b=vwozR0OA0+zNTCHOyTPsbKudvA5wZOpzXaPHBCGtshVqvAsU+ME7n1HKjSkL0uFdqI O3iSEewln7tiSREUxCSJZgJwgMfr3Q4VlbhzNdpNNYHrevBtrS3nAQfcVUwx5n1gqD0A +dm34+kaTIQrhGU4JC20K0Z7xSuA5v7Cfwl71RPBPsP+w75nqfH220GaxpQNpRlJ24WN rmzGKg6lv05f9GNkoNr1k2OEBxCAKFS6YVuzrEzgJ5/iuxbebK+T8SPP7ypYYKIYI7Oy klMDQcUa/emJ1wQ8o6e7FASoxZr8JsRj0ndbXuwhfSQwiDHoeYFji2b7ux/y0smtpReP lc2Q== X-Gm-Message-State: ACrzQf2avp9RbVOFELhKu4iSekmp+t0oDwH4KxtcSwB5ocRtFCRlPZ9J FOtetX4iRYayNOWHp9Sk4UAoPDNNu5l9Tb7JRowdtDKR82A= X-Google-Smtp-Source: AMsMyM7snrmg9xPfX2FOmp3WRclL3rhzisDrjIc/k09lJ+6l7UtwAVfQWsm3YR4Rxfy9CzRCP6dRqMmEbgvh/N9itac= X-Received: by 2002:a05:6512:248:b0:4b0:65b3:d6e0 with SMTP id b8-20020a056512024800b004b065b3d6e0mr23570090lfo.297.1668092185537; Thu, 10 Nov 2022 06:56:25 -0800 (PST) MIME-Version: 1.0 From: php fan Date: Thu, 10 Nov 2022 15:55:57 +0100 Message-ID: Subject: [BUG REPORT] Nonsensical behavior in response to Tab key To: zsh-workers@zsh.org Content-Type: text/plain; charset="UTF-8" X-Seq: 50931 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: Hello, I recently started using Manjaro KDE edition and it comes by default with zsh, as opposed to bash which I was used to from other distributions. Often, when I write commands whose arguments are paths in the filesystem, I'll type the first characters of a file or folder name and hit tab to either have it autocompleted or see the list of files and/or folders that start with that substring. And often, in that situation, I get behavior that differs significantly from other shells. I understand that I have a bias towards considering the behavior I'm used to "right" and anything new (zsh's behavior) "wrong", but in most cases I can't understand the rationale behind zsh's behavior and I'm pretty sure that in many cases it's plain wrong. In this report I'll describe one particular case that simply can't be right. I'll be happy to be proven wrong (well not really, but please do). 1) I am inside a directory that contains the following two directories: AddonsLab_LinkBack AddonsLab_LinkChecker plus many others with names starting with "AddonsLab_" 2) I start typing "cd Addons" and hit the Tab key As expected that gets partially autocompleted until "cd AddonsLab_" and stops 3) I continue typing until I have "cd AddonsLab_Link" and I hit Tab again EXPECTED: it should show me the list of files and folders whose name starts with "AddonsLab_Link", which are the two listed above. OBSERVED: 1) It partially autocompletes to "cd AddonsLab_Linkc" ending with a lowercase "c". That makes no sense whatsoever. There were two folders that matched "AddonsLab_Link", and it didn't show me the two options. It's like it has already decided to pick AddonsLab_LinkChecker (wrong, should let me choose), but instead of autocompleting it completely, it stops after the C, which it also for some reason changes to lowercase. There's no directory (or file for that matter) that starts with "AddonsLab_Linkc", and the only one that starts with "AddonsLab_LinkC". I could understand this behavior if both the following were true: - the folder AddonsLab_LinkBack didn't exist (nor any other starting with AddonsLab_Link not followed by a 'C' or 'c') - besides AddonsLab_LinkChecker there was at least one folder starting with AddonsLab_Linkc with a lowercase 'c' Being a little more tolerant, I could understand the behavior replacing the second condition with "besides AddonsLab_LinkChecker there was at least one other folder starting with 'AddonsLab_LinkC' with an uppercase or lowercase 'C'". But none of that is the case. 2) Then if I hit Tab again, it autocompletes "cd AddonsLab_LinkChecker". This second part makes sense given the previous one which didn't. I can reproduce all of the above starting with an empty folder: Run the following sequence of commands: > mkdir testzshbug > cd testzshbug > mkdir AddonsLab_whatever > mkdir AddonsLab_LinkBack > mkdir AddonsLab_LinkChecker Then type "cd AddonsLab_Link" and hit Tab.