EOL in stderr of ssh - Linux

Stanislaw Kaminski stanislaw.kaminski at gmail.com
Wed Jul 16 19:44:29 EST 2008


Hi,

Bob wrote:
> Stanislaw Kaminski wrote:
>> Correct me if I'm wrong, but I always thought that Linux' EOL is 0x0A.
>> Imagine my surprise when I saw that all messages that are being output
>> on to the stderr (on any Linux I've tested - Fedora and Ubuntu) are
>> terminated with 0x0D, 0x0A.
>
> What are your tty settings?  What is the output of this command?
>
>  stty -a
>
> What is the output of this command?
>
>  echo ABC | od -tx1
>
>Bob

$ stty -aspeed 38400 baud; rows 44; columns 179; 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;
flush = ^O; min = 1; time = 0;
-parenb -parodd 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

$ echo ABC | od -tx1
0000000 41 42 43 0a
0000004

I don't want to post this two times, so I'd like you to read my reply
to Bill's post to see where I see 0x0A 0x0D.

regards,
Stanislaw


More information about the openssh-unix-dev mailing list