From nobody Sun Nov 2 04:44:54 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 4czhwT0MpGz6Fwlf for ; Sun, 02 Nov 2025 04:45:13 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) (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 4czhwS5Z4gz3g2j for ; Sun, 02 Nov 2025 04:45:12 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-pj1-x102f.google.com with SMTP id 98e67ed59e1d1-3407f385dd0so1807214a91.1 for ; Sat, 01 Nov 2025 21:45:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1762058706; x=1762663506; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=f0UJSDx94JSpnSy2GFVhkzGv0RcFbrkxlFYZWsWbtrs=; b=H8UYmQP2UV9VHxJ5aqR1ClAhXO8rKRUF2sbUE7gLuVwD6tg97JIKjKDZCRXNlx4v/q 02dDCptp8BOFI2IDniQkM19GW4IO1okKhWKQyn6on+0G/vb4VCA5heWWUtnmAzOgfbB7 l2OT2FdHxFymJp9EPMQPl8gLmfr6wQr4InRmisxjZ1J9GCWN8rJC37BSqqKoWgB/u9p4 eRdVgGRyIY9yOPmr2W/xRqiSvRoz8TIabmp/Yqx6tL6Hyxg6yBEW7MhN9cmpLcOdO3oh Wp2vVwx32XUgbSiOuHQA7GZl2fcXef4E1/tm3oNtwPDmQjDGXQzSkUOoBCDdkvAF+qFA eSEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762058706; x=1762663506; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=f0UJSDx94JSpnSy2GFVhkzGv0RcFbrkxlFYZWsWbtrs=; b=Ck+nNJJjOYbrZ50gO/HTFjD76j/3YB9Ul2zvq4x6w4EStlTP34YopJiXXSWpTXhjzW Z9hoBpZtfnZ/NcXRF8U8BvalqKmYDRJTdtWmyKgCSnp3kn9n2v6RHG845Fce0y0ygKWh g+jOW0yMs57q5jCBsY+ACJbnhwAeXSSo19lbvcQfJEQg4RAJ0OYx/nTE2ZeyoB5kG0F0 Gq8c9WmfDbAgzbIjY9OAlfwlvwVpRnugIKUpDPQj9AF1KUz2LPajFpC/rd7+nwGQB0dK P5ABCjG68rSq0RAwV+886PIjcp/zKVMKBLgjLpKWT2b77VZgLy6aUy7mBUb1WWdTLiH4 jt9Q== X-Gm-Message-State: AOJu0YwHbVdBKm8+1XllxTIOypZVCbKxEv7/hTcRb81gdJcxLHvjCFda QO03xsCtdvbLn6BRzPe+JnpPFOW44O5KAnCCyNm1N+i/HJ3LpAn3ZwHXG9WghFSmtsC9IGVJ7G6 9XRSYsME9xc6bBD9DtucLtRYZrXRT1MUwJRu3NPa+ppayIvwqhxz8ooM= X-Gm-Gg: ASbGncu8aeJuaAogGN1Fskds56Gli4ZiDZwHsZpEzAdTvnM8la0yKxXCRARYPxl57z7 DGq+NvqNlhJibhjBTio/wU0ky/zJHWfN5Ci68S/5GYTNmoSiErZz0sBP4RhIr2GDKc808SQ135D VCBkOCNXRiI485AE1rXxBbf+qPvF9J03AAFeMJsP5v/3HaULP3lknzNkT+e0vFdL/KnPMKRbzQP v070pb+HDqIFnx5cT2ZW1Cy4PyslYyJmrUAiaxw67tWBlEEzOBmP8FSv46HE83ifZdW4BnMAM4P 3pG1IQ== X-Google-Smtp-Source: AGHT+IEGKDA4krP4AE6IuUQ18qViOcKwDez6k6XDcxWRJekLa6NzSSV/irjsBugI4pQEQkdCFM0vJEYbY+NlHAV83Os= X-Received: by 2002:a17:90b:4a47:b0:340:c151:2d66 with SMTP id 98e67ed59e1d1-340c1512f49mr4197363a91.30.1762058705586; Sat, 01 Nov 2025 21:45:05 -0700 (PDT) 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 References: <864EE1FC-1533-47D4-A395-C24F25269EE0@freebsd.org> <342c6a91-a8a1-483d-861e-8e8c6d79998f@blastwave.org> <9ea41e44-7160-40eb-9d80-b8bf13a7f396@mm.st> <0c09c6fa-7071-4119-b97e-fc6d83f9fc3f@blastwave.org> In-Reply-To: <0c09c6fa-7071-4119-b97e-fc6d83f9fc3f@blastwave.org> From: Warner Losh Date: Sat, 1 Nov 2025 22:44:54 -0600 X-Gm-Features: AWmQ_bn18glsuZF38hl5TPtFcNzSH1CT9SnRhv-klosylLkWCSo1nXO2iYrb1IM Message-ID: Subject: Re: a really big question : why not "^C" for a CTRL-C with default /bin/sh ? To: Dennis Clarke Cc: freebsd-current@freebsd.org Content-Type: multipart/alternative; boundary="0000000000003859f106429543d6" 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: 4czhwS5Z4gz3g2j --0000000000003859f106429543d6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Nov 1, 2025 at 7:49=E2=80=AFPM Dennis Clarke wrote: > On 11/1/25 21:22, cyric@mm.st wrote: > > Dennis Clarke wrote: > >> On 11/1/25 20:30, Michael Gmelin wrote: > >>> > >>> > >>>> On 2. Nov 2025, at 00:34, Dennis Clarke > wrote: > >>>> > >>>> =EF=BB=BF > >>>> This is about as annoying as a small sharp stone stuck in a shoe : > >>>> > >> ... > >>> Wasn=E2=80=98t this always the default behavior in /bin/sh? > >>> > >> > >> If it was and if it is then it is broken and always has been. > >> > >> No UNIX shell *ever* behaves this way in at least the last four decade= s. > > > > zsh does, ksh93 (illumos) does. > > > > Those both hide the CTRL-C "^C" chars ? > > Oracle Solaris 11.4.81.193.1 Assembled April 2025 > n$ > n$ uname -a > SunOS neptune 5.11 11.4.81.193.1 sun4v sparc sun4v non-virtualized > n$ echo $SHELL > /usr/xpg4/bin/sh > n$ > n$ ls la la la la la ^C > n$ > n$ which ksh93 > /usr/bin/ksh93 > n$ > n$ ksh93 > dclarke@neptune:~$ > dclarke@neptune:~$ and then we have Dave Korn > dclarke@neptune:~$ well look ... no CTRL-C ^C chars ? > > dclarke@neptune:~$ > > Nice one. I did not recall the ksh93 issue. Must be something in the > stty options being set or unset. > tcsh doesn't report it at the prompt (most likely because libedit is in play), but does if you type cat and then ^C. Warner --0000000000003859f106429543d6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Sat, Nov 1, = 2025 at 7:49=E2=80=AFPM Dennis Clarke <dclarke@blastwave.org> wrote:
On 11/1/25 21:22, cyric@mm.st wrote:
> Dennis Clarke wrote:
>> On 11/1/25 20:30, Michael Gmelin wrote:
>>>
>>>
>>>> On 2. Nov 2025, at 00:34, Dennis Clarke <dclarke@blastwave.org> = wrote:
>>>>
>>>> =EF=BB=BF
>>>> This is about as annoying as a small sharp stone stuck in = a shoe :
>>>>
>> ...
>>> Wasn=E2=80=98t this always the default behavior in /bin/sh? >>>
>>
>> If it was and if it is then it is broken and always has been.
>>
>> No UNIX shell *ever* behaves this way in at least the last four de= cades.
>
> zsh does, ksh93 (illumos) does.
>

Those both hide the CTRL-C "^C" chars ?

Oracle Solaris 11.4.81.193.1=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Assembled April 2025
n$
n$ uname -a
SunOS neptune 5.11 11.4.81.193.1 sun4v sparc sun4v non-virtualized
n$ echo $SHELL
/usr/xpg4/bin/sh
n$
n$ ls la la la la la ^C
n$
n$ which ksh93
/usr/bin/ksh93
n$
n$ ksh93
dclarke@neptune:~$
dclarke@neptune:~$ and then we have Dave Korn
dclarke@neptune:~$ well look ... no CTRL-C=C2=A0 ^C chars ?

dclarke@neptune:~$

Nice one. I did not recall the ksh93 issue. Must be something in the
stty options being set or unset.

tcsh d= oesn't report it at the prompt (most likely because libedit is in play)= , but does if you type cat<return> and then ^C.

<= div>Warner
--0000000000003859f106429543d6--