bug-bash
[Top][All Lists]
Advanced

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

Re: Brace expansion bug


From: Dan Douglas
Subject: Re: Brace expansion bug
Date: Mon, 26 Mar 2012 09:45:16 -0500
User-agent: KMail/4.7.4 (Linux/3.1.6-pf; KDE/4.7.4; x86_64; ; )

On Monday, March 26, 2012 08:07:00 AM you wrote:
> On 03/26/2012 07:56 AM, Dan Douglas wrote:
> > Don't know how much I'm allowed to quote here, but a quick read of the
> > POSIX parsing rules and parameter expansion sections suggest to me that
> >  the start of the parameter expansion should be the most important
> > factor, and that nested quotes and braces are counted as part of the
> > parameter expansion and escape at least any closing braces (doesn't
> > mention opening brace).
> POSIX doesn't specify brace expansion.  Use of brace expansion is an
> extension, and since there is no standard, it's hard to say whether it's
> right or wrong; you can only say whether it behaves as bash documented
> it to behave.

Fair enough, So long as there's no conflicting language. It is a useful hack if 
the behavior is intended - slightly betterthan the sometimes tempting but not-
so-practical: cmd "${some-expansion}"{,,,,,}

-- 
Dan Douglas

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

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