Benjamin Peter wrote: > On 02/13/2011 04:50 PM, Frank Terbeck wrote: [...] >> % printf '%s = '\''%s'\''\n' ${(kv)color} | sort >> > > Not sure if this does what it was inteded to. > > $ printf '%s = '\''%s'\''\n' ${(kv)color} | sort > = '''''' > ' ${(kv)color} | sortnone = ''
Yes, for you it doesn't, pretty much because of the ksh_arrays option I mentioned in the other mail. > When I just do the following I get > > $ print ${(kv)color} > none > > But I think I figured what you wanted. > > Maybe this? > > printf '%s = %s\n' ${(kv)color[*]} | sort Actually, I wanted @ and double-quotes rather than *, but for the involved values, it doesn't make a difference. :) > Anyway. I tried to to do some kind of single step printf debugging > after your printf hints and added the files as an attachement.[...] [...] Thanks, I'm pretty sure I found the underlying cause by looking at the xtrace you provided earlier today. See if my ideas around ksh_arrays help with the problem (I'm fairly sure they will). Regards, Frank -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org