From nobody Sun Nov 02 01:32:23 2025 X-Original-To: freebsd-current@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 4czcf11k9Tz6FdHq for ; Sun, 02 Nov 2025 01:32:25 +0000 (UTC) (envelope-from ianfreislich@gmail.com) Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4czcf117Gdz3FfK for ; Sun, 02 Nov 2025 01:32:25 +0000 (UTC) (envelope-from ianfreislich@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-29524abfba3so18546345ad.1 for ; Sat, 01 Nov 2025 18:32:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1762047144; x=1762651944; darn=freebsd.org; h=mime-version:subject:user-agent:references:in-reply-to:message-id :date:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=Vo6NktG2Vq2ViE22N13VjI2IOCWVpd2O/xMdTqygAOQ=; b=LhzdmipRQ0T10dQXwF2uJi862FDid2S1QX4sCzL2qbXwVyCm97xy2mbgmxMf/qsIkU k0aNX6milZGPfrW5GsQSq/b454B2Hm6/8wLbq/G5gAK6tPM6PVq9n6wHZPwdht/lavC0 NFPS2bBtrU6dq/p4cBY6Wwh3+UIbv+eawYZtlYpupaQdrH+lAFWMwHoVBBnteQNExyXx VE0yNa/kh9dnphzLgMkTJsMJZtnGMUUuOHaeg+FrVITd02UrJvj9pfJndAQOifnXoGwF qlFVsrkB6nQQdx1MbbJqgIuVKxOuRM/swlpSkiwiw2pvZo8gNxDQgbAU3LyT7fyodQcm HO5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762047144; x=1762651944; h=mime-version:subject:user-agent:references:in-reply-to:message-id :date:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Vo6NktG2Vq2ViE22N13VjI2IOCWVpd2O/xMdTqygAOQ=; b=LN6+i/79hWA9rvFmkjwZ/1rE3iXQh3wo4qqsO8X69JapBA1SJUyRCIuKEeyBHYUtGM wsBFgwXCmbgOswVA6JRsb8ciqvXxFz9tyKwE7B3ox6ge0vULbIEQ/Dm0bWFcIhyKpFYY VZcpvw4SUZbTD+o7q91kdxAXaKw/C5Vn1ofvP3kb8am2guXS1pefDOjd6g8OTHeHnlFo kY6FqnOtLEifyFdDIkGEwadZ1XWOgnTC+oHCZNh4z0FU0jhpJv1VqIKbo7SxzaDvqG5K WMkGQWQK9mQdg7ppF1/y4zAXZYXAdqbAOlsL3zBbIBxaPuHr/KBUMenDTXiDRubXGeBL ftpg== X-Gm-Message-State: AOJu0YxqQVkAfurzkVF7GzA36bzJ3qiD05Oc4zFqLWt/IkwZ9s0QaLlc X4rdT99s7pPifhz+3XuTR2piYH53cGBEqVyxi5h0/NqThItYXAWKMr5Gt/UCOg== X-Gm-Gg: ASbGnctivtHuz+708Ghit32ua8QisMgCI4TxRE3dQkmAbduLkmMGhQTRvFZBJsmBJWz a1sEkO6YUK3aeRMm8cesG/uyr2vYraHJJkmi/1i2CsGekT3KLZri0QJ2b9ld6gVbv2BQpIzGrUR awzTj546QNB7XxGuIMgt43cZMNuZZFX3kPL3LbwOKkkr6dnWlerD6nCiPhoi1R442mBzYBjPQUn g2tr95gMHYKbl6g+hxEtfbgoUUarMtZfFJqfl4gvjHur5CJyKOra4kCtppkEvDBHNoSM1HdTdv7 1Th1dZSh2zYIK55PO9xkTyzEUIeeCw1JGNd4DdPae1XK/gNd/HrmyFRWjeZUvcE7pSpabQdOT7F qqIsXKC3IeuTwZy1ITY1/nVXrUYTzoF4BnkP0of1rn4jIyOBWDdz+7CO6FtOouYUj6WvUV9DkpA ymF6mXYXbNVqCXbGrM X-Google-Smtp-Source: AGHT+IH8EH13PxY4iuPjJyf30OOv2PVIxj/DFq8sLzUkuFBjSlNQn53S9AT4xjZXNp7YzEJ8E/VZbQ== X-Received: by 2002:a17:902:c947:b0:295:269d:87d1 with SMTP id d9443c01a7336-295269d893emr78581245ad.52.1762047143996; Sat, 01 Nov 2025 18:32:23 -0700 (PDT) Received: from [192.168.1.104] ([172.92.92.146]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-295743772e9sm18974765ad.66.2025.11.01.18.32.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 01 Nov 2025 18:32:23 -0700 (PDT) From: Ian Freislich To: Michael Gmelin , Dennis Clarke CC: FreeBSD CURRENT Date: Sat, 01 Nov 2025 18:32:23 -0700 Message-ID: <19a4231ac58.28c3.64e08aff09ba5a21b2fc9010d26a90e5@gmail.com> In-Reply-To: <864EE1FC-1533-47D4-A395-C24F25269EE0@freebsd.org> References: <864EE1FC-1533-47D4-A395-C24F25269EE0@freebsd.org> User-Agent: AquaMail/1.55.2 (build: 105502562) Subject: Re: a really big question : why not "^C" for a CTRL-C with default /bin/sh ? List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="19a4231af745f9128c365de3b4" X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4czcf117Gdz3FfK This is a multi-part message in MIME format. --19a4231af745f9128c365de3b4 Content-Type: text/plain; format=flowed; charset="UTF-8" Content-Transfer-Encoding: 8bit On November 1, 2025 17:30:35 Michael Gmelin wrote: >> On 2. Nov 2025, at 00:34, Dennis Clarke wrote: >> >>  >> This is about as annoying as a small sharp stone stuck in a shoe : >> >> h# uname -apKU >> FreeBSD hydra 15.0-BETA4 FreeBSD 15.0-BETA4 >> releng/15.0-n280841-a7707f2a3bf4 GENERIC amd64 amd64 1500068 1500068 >> h# >> h# echo $SHELL >> /bin/sh >> >> h# ldd /bin/sh >> /bin/sh: >> libedit.so.8 => /lib/libedit.so.8 (0x3bf400ba2000) >> libc.so.7 => /lib/libc.so.7 (0x3bf403255000) >> libtinfow.so.9 => /lib/libtinfow.so.9 (0x3bf404396000) >> libsys.so.7 => /lib/libsys.so.7 (0x3bf404618000) >> [vdso] (0x3bf400941000) >> h# >> >> However I can type in anything and hit CTRL-C and never ever see the >> much needed "^C" chars on the input line : >> >> h# zpool destroy -f zroot >> h# >> >> Well there you have it. Can you see the time I hit CTRL-C ? No? >> Neither can I. >> >> This is a really annoying "feature" in the default shell. >> >> There must be a way to fix this weird behavior. > > Wasn‘t this always the default behavior in /bin/sh? I'd need to install an old bsd if I still have the ISOs to check. However /bin/sh does print ^D. Somewhat odd it does that and not ^C. I've used FreeBSD since 2.1 but always used bash as my shell so I've never noticed the ctrl-c thing. Ian --19a4231af745f9128c365de3b4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On November 1, 2025 17:3= 0:35 Michael Gmelin <grembo@freebsd.org> wrote:

On 2. Nov 2025, at 00:34, Dennis Clarke <dclarke@blast= wave.org> wrote:

=EF=BB=BF
This is about as annoying as a small sharp stone stuck in= a shoe :

h# uname -apKU
FreeBSD hydra 15.0-BETA4 FreeBSD 15.0-BETA4 releng/15.0-n= 280841-a7707f2a3bf4 GENERIC amd64 amd64 1500068 1500068
h#
h# echo $SHELL
/bin/sh

h# ldd /bin/sh
/bin/sh:
libedit.so.8 =3D> /lib/libedit.so.8 (0x3bf400ba2000)
libc.so.7 =3D> /lib/libc.so.7 (0x3bf403255000)
libtinfow.so.9 =3D> /lib/libtinfow.so.9 (0x3bf40439600= 0)
libsys.so.7 =3D> /lib/libsys.so.7 (0x3bf404618000)
[vdso] (0x3bf400941000)
h#

However I can type in anything and hit CTRL-C and never e= ver see the
much needed "^C" chars on the input line :

h# zpool destroy -f zroot
h#

Well there you have it. Can you see the time I hit CTRL-C= ? No?
Neither can I.

This is a really annoying "feature" in the default shell.=

There must be a way to fix this weird behavior.


Wasn=E2=80=98t this always the default behavior in /bin/s= h?

I'd need to install an = old bsd if I still have the ISOs to check. However /bin/sh does print ^D. S= omewhat odd it does that and not ^C. I've used FreeBSD since 2.1 but always= used bash as my shell so I've never noticed the ctrl-c thing.

Ian

--19a4231af745f9128c365de3b4--