bug-bash
[Top][All Lists]
Advanced

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

prompt problem


From: Joerg Hoh
Subject: prompt problem
Date: Sun, 28 Aug 2005 11:33:34 +0200
User-agent: Mutt/1.5.9i

Configuration Information [Automatically generated, do not change]:
Machine: alpha
OS: netbsd
Compiler: cc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='alpha' 
-DCONF_OSTYPE='netbsd' -DCONF_MACHTYPE='alpha--netbsd' -DCONF_VENDOR='' 
-DLOCALEDIR='/usr/pkg/share/locale'
+-DPACKAGE='bash' -DSHELL  -DHAVE_CONFIG_H  -I.  -I. -I./include -I./lib  
-I/usr/include -O2 -mieee -I/usr/include
uname output: NetBSD atlas.joerghoh.de 2.0.2 NetBSD 2.0.2 (GENERIC) #0: Tue Mar 
22 03:47:43 UTC 2005
address@hidden:/home/builds/ab/netbsd-2-0-2-RELEASE/alpha/200503220140Z-obj/home/builds/ab/netbsd-2-0-2-RELEASE/src/sys/arch/alpha/compile/GENERIC
 alpha
Machine Type: alpha--netbsd

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

Description:

        If I want to beautify my shell prompt, I encountered this really weird
        problem. The intended prompt should be

        address@hidden ~ $

        but I there are some characters printed after the trailing "$"; if the
        ANSI code for white color \033[1;317m is used, there is a "37m" garbage
        printed after the $; if I remove that color definition, there is still
        " $" garbage there.

        (The coloring is in all cases ok)

Repeat-By:
        address@hidden ~ $ 37mecho $PS1
        \[\033[1;address@hidden \033[1;31m\W $ \033[1;37m
        address@hidden ~ $ 37mexport PS1="\[\033[1;address@hidden \033[1;31m\W 
$"
        address@hidden ~ $ $export PS1="\[\033[1;address@hidden \033[1;31m\W"
        address@hidden ~m~export PS1="\[\033[1;address@hidden \033[1;31m"
        address@hidden 1m

        We tested this on alpha-netbsd and on i386-netbsd, each with bash
        3.00.16, and there is this error on both plattforms. bash 2.05 doesn't
        seem to be affected.

        On my GNU/Linux-Box (Debian unstable) there is no such problem with
        this bash version.


Attachment: signature.asc
Description: Digital signature


reply via email to

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