Skip to content

\r \n line insertions on Darwin to Linux in terminal #227

@rjkroege

Description

@rjkroege

I have discovered something that seems odd. Maybe it's working as intended but it results in a lot of spurious diff mismatches for me.

When I run cpu without a Pty (i.e. by middle clicking in Acme / Edwood), command results do not contain \r characters. I.e.:

cpu -namespace $_h helios4 echo hello | od -c
0000000    h   e   l   l   o  \n                                        
0000006

But when I run cpu with a Pty (i.e. by typing in a conventional terminal, it does contain \r as part of the line endings. I.e.:

; cpu -namespace $_h helios4 echo hello | od -c
0000000    h   e   l   l   o  \r  \n
0000007

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions