Date: Sat, 01 Nov 2025 18:32:23 -0700 From: Ian Freislich <ianfreislich@gmail.com> To: Michael Gmelin <grembo@freebsd.org>, Dennis Clarke <dclarke@blastwave.org> Cc: FreeBSD CURRENT <freebsd-current@freebsd.org> Subject: Re: a really big question : why not "^C" for a CTRL-C with default /bin/sh ? Message-ID: <19a4231ac58.28c3.64e08aff09ba5a21b2fc9010d26a90e5@gmail.com> In-Reply-To: <864EE1FC-1533-47D4-A395-C24F25269EE0@freebsd.org> References: <f5929936-1184-46e6-929b-72fe460719aa@blastwave.org> <864EE1FC-1533-47D4-A395-C24F25269EE0@freebsd.org>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On November 1, 2025 17:30:35 Michael Gmelin <grembo@freebsd.org> wrote: >> On 2. Nov 2025, at 00:34, Dennis Clarke <dclarke@blastwave.org> 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 [-- Attachment #2 --] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <body> <div dir="auto"> <div dir="auto"><span style="font-size: 12pt;">On November 1, 2025 17:30:35 Michael Gmelin <grembo@freebsd.org> wrote:</span></div><div id="aqm-original" style="color: black;"> <div><br></div> <blockquote type="cite" class="gmail_quote" style="margin: 0 0 0 0.75ex; border-left: 1px solid #808080; padding-left: 0.75ex;"> <blockquote type="cite" class="gmail_quote" style="margin: 0 0 0 0.75ex; border-left: 1px solid #0099CC; padding-left: 0.75ex;"> <div dir="auto">On 2. Nov 2025, at 00:34, Dennis Clarke <dclarke@blastwave.org> wrote:</div> <div dir="auto"><br></div> <div dir="auto"></div> <div dir="auto">This is about as annoying as a small sharp stone stuck in a shoe :</div> <div dir="auto"><br></div> <div dir="auto">h# uname -apKU</div> <div dir="auto">FreeBSD hydra 15.0-BETA4 FreeBSD 15.0-BETA4 releng/15.0-n280841-a7707f2a3bf4 GENERIC amd64 amd64 1500068 1500068</div> <div dir="auto">h#</div> <div dir="auto">h# echo $SHELL</div> <div dir="auto">/bin/sh</div> <div dir="auto"><br></div> <div dir="auto">h# ldd /bin/sh</div> <div dir="auto">/bin/sh:</div> <div dir="auto">libedit.so.8 => /lib/libedit.so.8 (0x3bf400ba2000)</div> <div dir="auto">libc.so.7 => /lib/libc.so.7 (0x3bf403255000)</div> <div dir="auto">libtinfow.so.9 => /lib/libtinfow.so.9 (0x3bf404396000)</div> <div dir="auto">libsys.so.7 => /lib/libsys.so.7 (0x3bf404618000)</div> <div dir="auto">[vdso] (0x3bf400941000)</div> <div dir="auto">h#</div> <div dir="auto"><br></div> <div dir="auto">However I can type in anything and hit CTRL-C and never ever see the</div> <div dir="auto">much needed "^C" chars on the input line :</div> <div dir="auto"><br></div> <div dir="auto">h# zpool destroy -f zroot</div> <div dir="auto">h#</div> <div dir="auto"><br></div> <div dir="auto">Well there you have it. Can you see the time I hit CTRL-C ? No?</div> <div dir="auto">Neither can I.</div> <div dir="auto"><br></div> <div dir="auto">This is a really annoying "feature" in the default shell.</div> <div dir="auto"><br></div> <div dir="auto">There must be a way to fix this weird behavior.</div> <div dir="auto"><br></div> </blockquote> <div dir="auto"><br></div> <div dir="auto">Wasn‘t this always the default behavior in /bin/sh?</div> </blockquote> </div><div dir="auto"><br></div><div dir="auto">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.</div><div dir="auto"><br></div><div dir="auto">Ian</div><div dir="auto"><br></div> </div></body> </html>home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19a4231ac58.28c3.64e08aff09ba5a21b2fc9010d26a90e5>
