Thanks Jan, Greg's solution is great!
wyf
2011/6/23 Jan Schampera :
> Hi,
>
>
> I agree this is not a bug. %c works as described.
>
> However, Mr. Wang may want to read one of Greg's brilliant FAQ entries [1].
>
> In general it's a bit of a pity that printf can do character->number
> conversion,
uot;%c\n", 65'
A
Perhaps bash should clarify this issue in its documents such that users like me
would not be misguided again.
Thanks
2011/6/23 Jonathan Nieder :
> Hi,
>
> Yunfeng Wang wrote:
>
>> $ printf %c 65 66 67
>> 666
>>
>> T
Configuration Information [Automatically generated, do not change]:
Machine: i486
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i486'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash