bug-bash
[Top][All Lists]
Advanced

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

Behavior Change between 2.04 and 2.05 for empty PS2


From: Markus Schwarzenberg
Subject: Behavior Change between 2.04 and 2.05 for empty PS2
Date: Tue, 29 May 2001 10:08:37 +0200 (MET DST)

Configuration Information [Automatically generated, do not change]:
Machine: sparc
OS: solaris2.7
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='sparc' 
-DCONF_OSTYPE='solaris2.7' -DCONF_MACHTYPE='sparc-sun-solaris2.7' 
-DCONF_VENDOR='sun' -DSHELL -DHAVE_CONFIG_H  -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I.  -I. -I./include -I./lib 
-I/home/digital/schwarzenberg/sol57/include -O2
uname output: SunOS sund32 5.7 Generic_106541-07 sun4u sparc SUNW,Ultra-5_10
Machine Type: sparc-sun-solaris2.7

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

Description:
        In bash 2.05 PS1 is displayed in cases where PS2 is to
        be displayed when PS2 is set to an empty string.

Repeat-By: 
        
        execute interactively (<RETURN> is a return-keypress):  

        PS2=''
        echo 'abc<RETURN>def'

        As soon as the <RETURN> key is hit bash displays PS1 
        instead of nothing, as it was with older bash versions.

Fix:    
        Set PS2 to something that displays nothing but isn't empty:
        
        PS2='\[\]'      

        The behavior change should be at least documented.
        Personally I would prefer to keep the old behavior
        (getting an empty PS2-prompt if PS2 set PS="" ), but
        since it works with the fix the change isn't a problem.



reply via email to

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