Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #16809
| From | Шкіпер Десна <shkiper.d1000@gmail.com> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Bug with new lines |
| Date | 2020-08-24 22:05 +0300 |
| Message-ID | <mailman.1065.1598301720.2469.bug-bash@gnu.org> (permalink) |
| References | <CABNJF6eOxmU5XdqMiA81Vz=M_BT0uv29CYjM4kXHgQp+xKST1A@mail.gmail.com> |
Hello!
If I use something like `user@localhost:/folder$ echo -n 123`, then in a
new line before 'user...' I see '123', but it's yet normal, but if I use
something like `user@localhost:/folder$ echo -n $(echo 123)` or
`user@localhost:/folder$ printf %s 123`, it may seem that everything is in
order, but if I tap up (to copy previous command) and then tap down (to
back), Bash will leave from start so many chars, like 'user@localhost:/folder$
' has, i.e., I'll get 'user@localhost:/folde'. The only way to repair it is
to press "enter". If I just press up after `user@localhost:/folder$ printf
%s 123`, then nothing unusual happens — it appends the previous command
after '...$ ', like usual ('123' in the beginning doesn't disappear). If I
tap it again, some many times, again nothing unusual, but once it will cut
the ending of 'user@localhost:/folder$ '. I don't know exactly where the
logic is. If I tap up twice or more, but the ending yes hasn't been
clipped, I can tap down and it won't be clipped, for except the last tap,
when I get the current command.
Best regards,
Shkiper Desna.
Back to gnu.bash.bug | Previous | Next | Find similar
Bug with new lines Шкіпер Десна <shkiper.d1000@gmail.com> - 2020-08-24 22:05 +0300
csiph-web