bug-bash
[Top][All Lists]
Advanced

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

prompt printing is buggy


From: erkok
Subject: prompt printing is buggy
Date: Tue, 31 Jul 2001 22:26:52 +0000 (UTC)

Configuration Information [Automatically generated, do not change]:
Machine: i586
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i586' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i586-mandrake-linux-gnu' 
-DCONF_VENDOR='mandrake' -DSHELL -DHAVE_CONFIG_H  -D_FILE_OFFSET_BITS=64  
-D_GNU_SOURCE -I. -I/usr/include -I. -I./include -I./lib -I/usr/include -O3 
-fomit-frame-pointer -pipe -mcpu=pentiumpro -march=i586 -ffast-math 
-fno-strength-reduce
uname output: Linux arf.cse.ogi.edu 2.4.3-20mdk #1 Sun Apr 15 23:03:10 CEST 
2001 i686 unknown
Machine Type: i586-mandrake-linux-gnu

Bash Version: 2.05
Patch Level: 1
Release Status: release

Description:
        bash fails to print the prompt correctly.
        when it prints the value of PS1, it ``rewinds'' to the 
        beginning of the line, which causes trouble.

Repeat-By:
        simply enter:

        % echo -n bug

        you will *NOT* see "bug" printed. I think `bug' is actually
        printed, but when bash prints the prompt, it rewinds to the
        first column, overriding the text.

        similarly, try `cat' on a file whose last line does not end
        with a newline. you won't see the last line printed.



reply via email to

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