[Top][All Lists]

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

Brace expansion bug

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

Hi, hopefully a self-explanatory one today:

    ~ $ ( set -x -- {a..c}; echo "${*-"{1..3}"}" )
    + echo 'a b c' 'a b c' 'a b c'
    a b c a b c a b c

    ~ $ ( set -x -- {a..c}; echo "${*/"{1..3}"/$*}" )
    + echo 'a b c' 'a b c' 'a b c'
    a b c a b c a b c

I'm told similar glitches have been found before. Looks like this applies to 
anything that has this sort of replacement context that contains valid brace 
expansion syntax inside quotes.

Bash 4.2.24 - Gentoo amd64

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]