[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: The ls command



> > And one can make xterm on trixie (not that old) crash:
> 
> >   xterm -k8 -e 'printf "\x9a\x85\x08"; sleep 2'
> 
> Thanks for the runnable demo!
> 
> I *really* like demos for shell related discussions, because a big part of
> my learning process about the shell came from people providing little
> runnable examples like this. I think it's a great way to communicate.
> 
> So I tried that on bookworm, and it crashed as you say.

It doesn't crash for me (on Trixie).  It causes xterm to write some
information to the screen, and then 2 seconds go by, and then the
xterm closes cleanly (because no shell was requested).

> When I copied and pasted the above into vim to write this message, I can
> see that the 'echo *' did output the bytes <9a><85>. I guess there might
> have also been a bell <08> that I did not hear (for whatever reason, that's
> not important).
> 
> But the xterm did not crash, it continued to function.

It doesn't crash interactively for me, either.  Here's what I'm seeing:

hobbit:~$ printf "\x9a\x85\x08"
 
hobbit:~$ ?64;1;2;6;9;15;16;17;18;21;22;28c

If I press Enter again, the stuff from ? to c gets erased, and I'm back
to a regular shell prompt.


Reply to: