I get $PS2 prompts for either of the single or double quote versions in Bash 3 and 4.
In ksh93 and zsh 4.3.10, the single quote version works for me, but the double quote version produces a continuation prompt. So my results differ from yours quite a bit. On Fri, Nov 19, 2010 at 12:20 PM, Matt Zyzik <matt.zy...@nyu.edu> wrote: > bug-bash, > > I am noticing a behavior that appears to be a bug. Additionally, what I > am expecting to happen is the actual behavior in both Zsh and Ksh. > > This is the command (ignore leading whitespace): > echo "${fpbnoinervzkjeh:-'good morning}" > This is the output in both Zsh and Ksh (ignore leading whitespace): > 'good morning > > In Bash, there is no output, only a prompt that appears. However, the > following command (ignore leading whitespace): > echo "${fpbnoinervzkjeh:-''good morning}" > produces the following output in all 3 shells (ignore leading whitespace): > ''good morning > > Can I request comment? Thank you. > > --Matt Zyzik > >