From: Marc R. <re...@gm...> - 2023-07-31 11:21:01
|
On 7/31/23 13:03, Rony G. Flatscher wrote: > According to "https://linux.die.net/man/1/stty" "stty --all" would print all settings (to stdout I assume). True : $ stty --all speed 38400 baud; rows 30; columns 99; line = 0; intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; discard = ^O; min = 1; time = 0; -parenb -parodd -cmspar cs8 -hupcl -cstopb cread -clocal -crtscts -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany -imaxbel iutf8 opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0 isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke -flusho -extproc $ echo dog | stty stty: 'standard input': Inappropriate ioctl for device The first command is attached to a terminal (either a 'real' terminal, but more likely a pseudo-terminal), and shows its settings. The second command's stdin is the stdout of the echo command, and says so.. Also check the tty command: $ tty /dev/pts/6 $ echo dog | tty not a tty Marc |