From nobody Wed Feb 18 20:06:17 2026 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 4fGSFP23pRz6SkHw for ; Wed, 18 Feb 2026 20:06:17 +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 "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fGSFP1QDYz3pJh for ; Wed, 18 Feb 2026 20:06:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1771445177; 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=UMgAZ+OJVZNXKf0AD56b2S5PBfPb4/6fWbIiBB2ekuU=; b=vRIuvbSxrk7tjtyXgC0zliezmNLlnSbVJxvFd4rqDqldCY5HUAH+EsN72rjAZs6uItVVx2 7YJwa0Tq5RkHqNzxUy64Du17nskB9Q0yNNPqhy1tKxBWJgfBnvC90MG+F4UsMDWax8Amy/ RrJMldvZuOh024jzuxYadOTjQbtJFTdftZWkDKAoV6634eg5YvhzUV1BKhM0mxNv9ISb2v +nX83jf+yuhQay29QE6r1ImrrwdNY6kI++G7zvec1z/oqLmKFSDUAd+DvtK5X+LEjIxyNW RcS9unhkAM+IM32k6RvKVEdtdx4eR2SQpdIsfdWZ0rzNv9B91Tua38kPKR/Elg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1771445177; a=rsa-sha256; cv=none; b=m7nesW/vFPwgHowtBTxlSp86WPLz1G83PqSp9LAFq1GYOSUlPifXpAuE6xJaxgPGfdLmga 90nmcDocBvJ5LoRqQEObASu81U7jprwmkaHwr+j90/FY55KYSluc2Z1iigamQDojBAL94B dBpPI+VTo187w+DTYiPvlb9Ile7vOEV10gyBaXtEhmc3OaoTvx2/Fn9Zqmpquyy4WoRd1S kEzuGSYQA1DNyRHQfxQhzEr0Y4uffHP5Rrc7T0N4pcGNpql3d5EuSfi/0MyFV2iDK5K3lS jLHCCK0Js3UwB2qrl3XR+hLbWHs+sjsqPYsgAIHp3f4GIQHPK8o0E6CMg0nR/w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1771445177; 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=UMgAZ+OJVZNXKf0AD56b2S5PBfPb4/6fWbIiBB2ekuU=; b=wguQj5GpNDILKpFg40z7XPQFXfqmGA0Xm7o26RFVbhh7q5Qf0D4YTtEGGqfDH4Ad8BAS/U tvscP68O/z+mj4M7pmbEPMzHlzFpDlm0C4Kwt/GIxRElQl1wOfxM/gGy+zt+1iqGSsZC/2 yIh6mEy/VsXAFdTtE9aiExxNqIOJzSg/7OruiuBhJDOaJC/qxt/w1V3kmfoOjMW8+HMzP/ /em0Z9BKHOdWCRRNUARY1dGdrPYLhy+N2kzY2JUbLMURrh2/UVxnwY1XwOghUE3SnqOpAE fB+9BmCTZTbEUMNXX3ugb8416XmNWkdTPJuZrTgbLtz8+lDKam2rBdOCP2wGGA== 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 4fGSFP0wLPz19DT for ; Wed, 18 Feb 2026 20:06:17 +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 61IK6HfH068252 for ; Wed, 18 Feb 2026 20:06:17 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 61IK6HWw068251 for bugs@FreeBSD.org; Wed, 18 Feb 2026 20:06:17 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 293267] bin/sh: Visual glitch on ^C on multiline input buffer Date: Wed, 18 Feb 2026 20:06:17 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: tembun@bk.ru 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-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D293267 Bug ID: 293267 Summary: bin/sh: Visual glitch on ^C on multiline input buffer Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: tembun@bk.ru Consider a situation when you have entered a very long command line in the interactive mode so it has been split into two or more lines due to terminal width (let's use '%' sign for current cursor position): user@host$ my_command_1 && my_command_2 && my_command_3 # <-- We hit the terminal width && my_command_4 && my_command_5% Now, if we would navigate the cursor to the begining of the command (which = is on the first line): user@host$ my_com%mand_1 && my_command_2 && my_command_3 # <-- We hit the terminal width && my_command_4 && my_command_5 ... and hit ^C at this place: user@host$ my_command_1 && my_command_2 && my_command_3 # <-- We hit the terminal width user@host$ %nd_4 && my_command_5 As we can see, the tail of the long command 'nd_4 && my_command_5' is still printed on the screen, which is confusing and inconvenient. The expected behaviour would be (after hitting ^C at that point): user@host$ my_command_1 && my_command_2 && my_command_3 # <-- We hit the terminal width && my_command_4 && my_command_5 user@host$ % ... i.e, the new prompt should be printed after the last line (last of the = two in our case) of the previously entered command. --=20 You are receiving this mail because: You are the assignee for the bug.=