zshのselect文で文字化け(未解決)
bashだと
$ bash --version GNU bash, version 4.1.5(1)-release (i486-pc-linux-gnu) Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software; you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
$ select i in あああ いいい ううう; do > echo $i > break > done 1) あああ 2) いいい 3) ううう #? 3 ううう
ok
んで、問題のzsh
$ echo $ZSH_VERSION 4.3.10
$ select i in あああ いいい ううう; do select> echo $i select> break select> done 1) あああ 2) ぃ�ぃ�ぃ� 3) ぃ�ぃ�ぃ� ?# 3 ううう
※実際には「�」は「�」と表示されている。
/(^o^)\
メモ
マニュアル zsh: 6 Shell Grammar
なるほど、わからん