Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Bug in parameter expansion flag 'o'?
- X-seq: zsh-users 15056
- From: Nick Pope <nick@xxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Bug in parameter expansion flag 'o'?
- Date: Tue, 11 May 2010 16:37:05 +0100
- Domainkey-signature: a=rsa-sha1; s=scara-dk; d=nickpope.me.uk; c=simple; q=dns; h=message-id:date:from:user-agent:mime-version:to:subject: content-type:content-transfer-encoding; b=byJ2K3aV4L7CVJC0gc+10lOqcIwQ8+/WhncDddFVpMxU0OkQ/BtTkme//KgJsy2Fa rN/sI8ez3aAsRD5aSnmRKXT0r0K/m7CYjLyuiUDhojNREjjKsi48ma3W7TXjQ59w4kY BA6eWa1xcJ+ZEL2FR/Tgd9MLYcJ8Z2c6wQMxb6E=
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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