bug-bash
[Top][All Lists]
Advanced

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

Multiline prompt problems with long commands


From: Kamil Neczaj
Subject: Multiline prompt problems with long commands
Date: Tue, 4 Nov 2014 00:50:46 +0100

Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-unknown-linux-gnu'
-DCONF_VENDOR='unknown' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash'
-DSHELL -DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib  -D_FORTIFY_SOURCE=2
-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong
--param=ssp-buffer-size=4
-DDEFAULT_PATH_VALUE='/usr/local/sbin:/usr/local/bin:/usr/bin'
-DSTANDARD_UTILS_PATH='/usr/bin' -DSYS_BASHRC='/etc/bash.bashrc'
-DSYS_BASH_LOGOUT='/etc/bash.bash_logout'
uname output: Linux kneczaj-laptop 3.17.2-1-ARCH #1 SMP PREEMPT Thu Oct 30
20:49:39 CET 2014 x86_64 GNU/Linux
Machine Type: x86_64-unknown-linux-gnu

Bash Version: 4.3
Patch Level: 30
Release Status: release

Description:
        When using multiline prompt and entering a long command, the part
which doesn't fit and should be moved to a
new line is actually move to the beginning of the same line which makes the
command unreadable.

Repeat-By:
        1. Set e.g. PS1="\n\[\033[01;32m\]\u@\h\[\033[01;34m\]
\w\[\033[01;33m\]\n\n\033[01;31m\]-------------> \[\e[0m\]"
        2. Type a command longer than one line.

Fix:
        Expected behaviour is that the part which doesn't fit will be moved
to a new line, what happens when
        the prompt is one line long.


reply via email to

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