bug-bash
[Top][All Lists]
Advanced

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

Array parameter expansion with non-space-IFS on bash-3/4


From: Freddy Vulto
Subject: Array parameter expansion with non-space-IFS on bash-3/4
Date: Fri, 27 Nov 2009 22:47:11 +0100

I noticed different behaviour between bash-3 and bash-4 when
performing parameter expansion on an array with IFS set to a non-space
value.  For example, on bash-3.2.39, I get:

    $ bash -c 'IFS=:; printf "<%s>\n" "${@/q}"' x a b
    <a b>

Whereas on bash-4.0.33, I get:

    $ bash -c 'IFS=:; printf "<%s>\n" "${@/q}"' x a b
    <a>
    <b>

Bash-4 seems to give the desired result (leave the array intact), but
it's a bug on bash-3?

Regards,

Freddy Vulto
http://fvue.nl




reply via email to

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