Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Bug in parameter expansion flag 'o'?



Hi,

It seems to be that there is a possible bug in the parameter expansion flag 'o' when the variable is referenced in a string:

    $ x=(a c b); echo ${(o)x}; echo "${(o)x}"
    a b c
    a c b

It should be noted that other flags still work alongside:

    $ x=(a c b); echo ${(Uo)x}; echo "${(Uo)x}"
    A B C
    A C B

Is this because arrays are being incorrectly converted to string prior to getting around to the sorting?

Cheers,

Nick




Messages sorted by: Reverse Date, Date, Thread, Author