zsh-workers
 help / color / mirror / code / Atom feed
* STTY fails to reset ICRNL / INLCR
@ 2024-04-18  5:13 Ronan Pigott
  2024-04-19  2:46 ` Bart Schaefer
  0 siblings, 1 reply; 4+ messages in thread
From: Ronan Pigott @ 2024-04-18  5:13 UTC (permalink / raw)
  To: zsh-workers

Hi zsh,

The following appears to be a bug:

  $ zsh --version
  zsh 5.9 (x86_64-pc-linux-gnu)
  $ uname -r
  6.8.7-arch1-1
  
  $ reset
  $ STTY={-icanon,-echo} xxd -ps -l3 # input Ctrl-J, Ctrl-M, Return
  0a0a0a
  $ STTY={-icanon,-echo,icrnl,inlcr} xxd -ps -l3 # input Ctrl-J, Ctrl-M, Return
  0d0a0a
  $ STTY={-icanon,-echo} xxd -ps -l3 # input Ctrl-J, Ctrl-M, Return
  0d0a0a

The STTY parameter description in zshparam(1):

> If this parameter is set in a command's environment, the shell runs the stty
> command with the value of this parameter as arguments in order to set up the
> terminal before executing the command. The modes apply only to the command,
> and are reset when it finishes or is suspended.

But as you can see, INLCR was not reset.

Cheers,

Ronan


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-04-19 20:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-18  5:13 STTY fails to reset ICRNL / INLCR Ronan Pigott
2024-04-19  2:46 ` Bart Schaefer
2024-04-19  2:53   ` Ronan Pigott
2024-04-19 20:14     ` Ronan Pigott

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).