bug-bash
[Top][All Lists]
Advanced

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

\n in PS1 causes line wrapping incorrectly.


From: Peter Radavich
Subject: \n in PS1 causes line wrapping incorrectly.
Date: Mon, 9 Aug 2004 12:45:25 -0700
User-agent: Mutt/1.5.6i

Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: freebsd5.2
Compiler: cc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' 
-DCONF_OSTYPE='freebsd5.2' -DCONF_MACHTYPE='i386-portbld-freebsd5.2' 
-DCONF_VENDOR='portbld' -DLOCALEDIR='/usr/local/share/locale' -DPACKAGE='bash' 
-DSHELL  -DHAVE_CONFIG_H  -I.
-I. -I./include -I./lib  -I/usr/local/include -O -pipe
uname output: FreeBSD pathogen.masked.int 5.2-CURRENT FreeBSD 5.2-CURRENT #1: 
Thu Jul  8 13:12:51 PDT 2004     
toor@pathogen.masked.int:/usr/obj/usr/src/sys/pathogen  i386
Machine Type: i386-portbld-freebsd5.2

Bash Version: 3.0
Patch Level: 0
Release Status: release

Description:
Using \n in PS1 will cause line wrapping early.

Repeat-By:
On an 80x24 terminal, set your prompt to:
PS1="[`uname` `uname -r`]:\t \w \n: \u@\h [$SHLVL] \\$; "

type:
01234567890abcdefghijklmnopqrstu

Watch your line wrap between t and u.

Fix:
The workaround is to use a less ridiculous prompt.





reply via email to

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