Skip to content
Discussion options

You must be logged in to vote

So, this usually happens when the shell implements its own wrapping for the input line.

This behavior exists in bash, for example. It knows the width of the screen and the width of the prompt, so it just inserts a CR and LF explicitly at the edge of the screen while rendering your input.

Effectively, from the terminal emulator's perspective it's receiving e c h o SP SP ... SP SP a b c d CR LF e f g h

Output is, of course, not given the same treatment... at least not by most of the echo primitives I've seen.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by DHowett
Comment options

You must be logged in to vote
3 replies
@DHowett
Comment options

@vefatica
Comment options

@DHowett
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants