[Top][All Lists]

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

Re: quote nesting bug

From: Dennis Williamson
Subject: Re: quote nesting bug
Date: Fri, 19 Nov 2010 16:25:14 -0600

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 <address@hidden> 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

reply via email to

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