From nobody Tue Feb 08 16:34:37 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 6370C19B0183 for ; Tue, 8 Feb 2022 16:34:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JtTB473KBz4RBl for ; Tue, 8 Feb 2022 16:34:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id CE99E1CDCC for ; Tue, 8 Feb 2022 16:34:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 218GYakL096961 for ; Tue, 8 Feb 2022 16:34:36 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 218GYaAT096960 for bugs@FreeBSD.org; Tue, 8 Feb 2022 16:34:36 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 261728] If sh became a usable interactive shell, then why can't it tab-autocomplete file.(mine).1.txt and file.(mine).2.txt? Date: Tue, 08 Feb 2022 16:34:37 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: tamelingdaniel@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644338077; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iCB8vvMeelwz+5EOtuTScImZ3KeeAM1qmN6obvhykzk=; b=HCnXFtrszpqNoEByRTi1EKSzVYBliglkKcIX0rHkpL88z2Mf8VnqKzXGcVPqWSk/zwYykB W9BA6wEjWI1XsGATWoT17y/V7/r2+YjHCOqvlBVH4xyzWm/EHUBfn3ujxM5F2bqCWx43IQ j3ewuzVV7Un3X5AcFkN+o1Uw85R39xDKnq8nbaEb/EhyL4MzJoQi5JIqBn1y1H3QNXowgI VKki/ZoeuVtF3ELm0ePUdr3sUeKIr1L/qBBA71QBNhzI6kLXttUJBLQf76ivtF9llaW2oq LI8dABWdyJpsCrDkHZWE1Gp7d3Jr2DF+dQjKFYw1uSPA8d7w4n7cSbCYKZYkNw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644338077; a=rsa-sha256; cv=none; b=J9j/hacUKVD0cAM85vuRNg1C3ePNuVp3KRdY5jZXnGgmHeqrRUhowzT3AodCWbTGObCXE+ wPXoPMZuLYV1EgAic7pTE1EJGKmNLTjXPVkIo5g8vYWuW3kEqdWzthFU4GsS6MkFuN3xfC SIeTzT3QejSB8dhSNyMXoog2HJ5McLy8t8KUkKwyRiWBFJbYai18E/QiHDoCE7tvzjBYVp +ehfthwmo5tiw9zpOR3/JW4GCfz/t1RY76egRK4d3B8wCqDey9FZB5j0+jy1yyzDp+8VFP GHsVOPcJA+0koyo6oB6GhyRzpaBn7f+FH7K9ChUOGhbeOUclCXVE8KUeITjRKg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261728 Daniel Tameling changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tamelingdaniel@gmail.com --- Comment #6 from Daniel Tameling --- Created attachment 231647 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D231647&action= =3Dedit Add ')' and '}' to the word delimiters for the completion. They were missin= g. I had a look at what is going on and this looks like a bug. The word delimi= ters passed to libedit are L" \t\n\"\\'`@$><=3D;|&{(". This is missing ')' and '= }'. So when it is going backwards through file.\(mine\). it recognizes the ')' as a normal character, but the '\' is actually a word delimiter and it then thinks that the ')' starts a new word. So when trying= to complete the expression it looks for files starting with ")." and if there = is, for example, a file ").test", one gets file.\(mine\\).test, which isn't the right thing to do. What it should do is recognize the ')' as a word delimiter, realize that the '\' before that means that it's escaped and use the whole string for the completion. So one has to add ')' and '}' to the word delimiters. The attac= hed patched fixed the issue in my experiments. --=20 You are receiving this mail because: You are the assignee for the bug.=