From nobody Sat Mar 25 21:07:32 2023 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 4PkWqm3gdlz41jXW for ; Sat, 25 Mar 2023 21:07:32 +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 4PkWqm0xnTz3tXP for ; Sat, 25 Mar 2023 21:07:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679778452; 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; bh=HDMrVnV2V/IhpbXRGe3QEEFAeitZ+YEALseVyr5XcFg=; b=ILbOzCcPWOAesY5PXY3WRnCEtheOa4tGXE/URHx1CeB0MK6vOo5zT0C0WPtvFza/JDNFxn Xj9TLXHjepcZXIzpQx8y1V2JkTZtcRZQhMivdzBLKxVPnDuOeQwRMUbMYMUwm/05PE2EXD bWNT31xVqg0nqz7ungmRbwz/cMy+YtC1BKrJbd2hgIiaUUCl2kiTd9nJgBboxJLCnhGIGh OSW4MSWfA3sG1LaOd4qa819CeFoO2vmkwmkVkBdZF+DqzS2ATLN/IuT3QaIFUYLDYS35/m wbNtMI2yDTvJusO7Umo+dlzQI2I6SHAv0eQRj2d0nYRFwQvsnFsPjpzaYQlGag== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1679778452; a=rsa-sha256; cv=none; b=UTMxFEyIujx3c6Lfi/yHLBs/EbB7bvRLUb4VlI8QL4rgcYQW/nJcELO9XZO3gH0LuSEZ/E SWE7kt8MqDwn0TDz9StXIeM16i9jGLnXKm8jsixWPnBQBIWsxLBe7RehmzHFASaG0dSmRs l6PZ48+ktl+841nDOsWc1IQ+v3CXwrjVasQoKoe1YTcYgZqdV7gH23wnDBEERNxlmltrgr 86hkv5dnIhFduSig1Pme0ZKz69SFAOWA95pteRAxnx0VzxQqHsrmUJIv5zEOqbeodqcSK7 7aYn7uYQDrVoLb7B9Z/7FL5dbhz8FROgpqAgRJg6D1X6OixqnXwWGpbroIqBCQ== 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 4PkWqm02TczDrw for ; Sat, 25 Mar 2023 21:07:32 +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 32PL7VlC042135 for ; Sat, 25 Mar 2023 21:07:31 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 32PL7VR5042134 for bugs@FreeBSD.org; Sat, 25 Mar 2023 21:07:31 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 270452] sh: filename completion hides last line Date: Sat, 25 Mar 2023 21:07:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: naddy@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270452 Bug ID: 270452 Summary: sh: filename completion hides last line Product: Base System Version: Unspecified Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: naddy@FreeBSD.org FreeBSD 13.2-STABLE GENERIC amd64 Under specific circumstances, sh(1)'s interactive filename completion fails= to show the last line of possible completions. script(1) shows that the missing line is written to the terminal, but then cleared and overprinted by the ne= xt prompt. I don't know if the bug is in sh(1) or editline(3). How to reproduce in a standard 80-column terminal: Create long filenames: $ touch abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz0 $ touch abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz1 $ touch abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz2 Write a sufficiently long dummy command for the line to wrap and hit TAB to= be offered possible completions: $ 0123456789012345678901234567890123456789 abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz0=20 abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz1 $ 0123456789012345678901234567890123456789 abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz After the list of completions is displayed, the prompt with the incomplete command is shown again. Note that list of possible completions lacks the fi= nal *2 file. --=20 You are receiving this mail because: You are the assignee for the bug.=