Re: printf treats arguments of "%c" not as expected

2011-06-23 Thread Yunfeng Wang
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,

Re: printf treats arguments of "%c" not as expected

2011-06-23 Thread Yunfeng Wang
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

printf treats arguments of "%c" not as expected

2011-06-22 Thread Yunfeng Wang
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