LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   typing really long commands at the prompt behaves differently (https://www.linuxquestions.org/questions/linux-newbie-8/typing-really-long-commands-at-the-prompt-behaves-differently-4175528750/)

MisterSnrub 12-19-2014 07:12 AM

typing really long commands at the prompt behaves differently
 
When I type a really long command in my PuTTY session, when I'm connected to one system as I type, the command wraps to the next line, like so:

[mrsnrub@my-test-site ~]$ echo "We the People

... as I keep typing more and more letters the command will scroll to the right, and a "<" sign will appear as the first character, like so:

Code:

<st-site ~]$ echo "We the People of the United States"
However, if I connect to another site, the text will wrap to the next line instead of scrolling to the right, like so:

Code:

[mrsnrub@my-other-site ~]$ echo "We the People of the United States in order to f
orm a more

Why is it different for each system? I would prefer they all scroll to the right instead of wrapping to another line.

veerain 12-19-2014 08:18 AM

Line wrapping depends on the ssh daemon on the other (server) side.

Edit: and the shell used by ssh daemon.

MisterSnrub 12-19-2014 08:32 AM

OK, is there any way to check that?

grail 12-19-2014 08:52 AM

I actually found the same issue at work and it was due to the way PS1 had been set


All times are GMT -5. The time now is 06:55 PM.