bug-bash
[Top][All Lists]
Advanced

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

Re: Behavior Change between 2.04 and 2.05 for empty PS2


From: Chet Ramey
Subject: Re: Behavior Change between 2.04 and 2.05 for empty PS2
Date: Wed, 30 May 2001 09:11:06 -0400

> 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.

I can't reproduce it:

thor.ins.cwru.edu(2)$ ./bash --version
GNU bash, version 2.05.0(1)-release (sparc-sun-solaris2.7)
Copyright 2000 Free Software Foundation, Inc.
thor.ins.cwru.edu(2)$ uname -a
SunOS thor.ins.cwru.edu 5.7 Generic_106541-12 sun4m sparc SUNW,SPARCstation-20
thor.ins.cwru.edu(2)$ PS1='PS1$ '
PS1$ PS2=''
PS1$ echo 'abc
def'
abc
def

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)

Chet Ramey, CWRU    chet@po.CWRU.Edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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