bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash 4.4.18 return to new line


From: Alexander Kozlenkov
Subject: Re: bash 4.4.18 return to new line
Date: Fri, 02 Feb 2018 19:39:10 +0000

$ printenv PS1
\e[1;95m\t\e[0m:\[\e]0;address@hidden:
\w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;address@hidden:\[\033[01;34m\]\w\[\033[00m\]\$


$ uname -a
Linux PC001 4.8.0-58-generic #63~16.04.1-Ubuntu SMP Mon Jun 26 18:08:51 UTC
2017 x86_64 x86_64 x86_64 GNU/Linux

$ bash --version
GNU bash, версия 4.4.18(1)-release (x86_64-unknown-linux-gnu)
Copyright (C) 2016 Free Software Foundation, Inc.

And today I connect to remote server via command:
$ shh address@hidden
And when I navigate over history (in vi-mode press 'k' key) cursor position
move after '@' and navigation to left position don't work. But when I press
'I' key (insert before first symbol of line) cursor position not change
(after '@') and next I entering something or removed symbols, cursor
position move to real position (first symbol in line).
Example:
$ ssh username@(*cursor here*)remote.server.com
# press 'I'
$ ssh username@(*cursor here*)remote.server.com
# press right and remove first symbol
$ (*cursor here*)sh address@hidden
--
Best regards
Aleksandr Kozlenkov

пт, 2 февр. 2018 г. в 22:13, Chet Ramey <address@hidden>:

> On 2/2/18 7:42 AM, Alexander Kozlenkov wrote:
> > Hello!
> > Thanks for your project!
> > On days I did building bash v4.4.18 for using vi-ins-mode-string and
> > vi-cmd-mode-string variables in VI mode (insert and command modes).
> > But, when I print long string, line break don't work for the first input
> > line:
> >     > (ins):15:30:03:address@hidden:~/git/bash-4.4.18$
> >     > 11111115:24:36:address@hidden:~/git/bash-4.4.18$
> > 1111111111111111111111111111111111111111111111
> >
> > When I print more symbols, line break work well.
>
> What's your $PS1?
>
> --
> ``The lyf so short, the craft so long to lerne.'' - Chaucer
>                  ``Ars longa, vita brevis'' - Hippocrates
> Chet Ramey, UTech, CWRU    address@hidden    http://tiswww.cwru.edu/~chet/
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]