Thanks Jan, Greg's solution is great! wyf
2011/6/23 Jan Schampera <jan.schamp...@web.de>: > 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, but not (directly) back. But it is like it is and the > "workarounds" are not really complicated. > > > Jan > > > [1] http://mywiki.wooledge.org/BashFAQ/071 > > -- > Be conservative in what you do, be liberal in what you accept from others. > - jbp, master of the net, in RFC793 > >