Yunfeng Wang wrote:
Perhaps bash should clarify this issue in its documents such that users like me would not be misguided again.
Since the reference to printf(3) is misleading sometimes, I made some document [1] for Bash's printf only. It's far from perfect, but at least it mentions %s and "first character" ;-)
Jan [1] http://wiki.bash-hackers.org/commands/builtin/printf -- Be conservative in what you do, be liberal in what you accept from others. - jbp, master of the net, in RFC793