N
N
nathan1117772021-09-28 16:44:57
linux
nathan111777, 2021-09-28 16:44:57

Why are the commands in the terminal that I wrote earlier sent to the OS immediately after I copy and paste on a new line even before I hit enter?

I write some command in the terminal, I press the enter key. And for example, I get an answer that I wrote the command incorrectly, or I want to add some parameter to the command, I copy and paste the command that I entered earlier in the terminal into a new line to edit. But it immediately goes, as if I pressed enter.

Is it possible to somehow configure the terminal to send commands only when I press enter?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Adamos, 2021-09-28
@nathan111777

It is possible to call the previous command with the up arrow.
And when copying, you capture the newline, so it is "introduced".

P
pfg21, 2021-09-28
@pfg21

the terminal sends the input characters byte by byte.
and "enter" he doesn't care

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question