Antonio Macchi wrote:
>
> thanks... but parameters expansions and printf builtin works differently
> about it...
>
>
>
>
> $ locale | grep LC_CTYPE
> LC_CTYPE="en_US.UTF-8"
>
> $ a=eèèèe
>
> $ b=eeeee
>
> $ echo ${#a}
> 5
>
> $ echo ${#b}
> 5
>
> $ printf "*%-10s*" $a
> *eèèèe *
>
> $ printf "*%-10s*" $b
> *eeeee *
>
>
>
>
> is it ok?
Yes, it's ok. Posix says that printf field widths are specified in number
of bytes.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Chet Ramey, ITS, CWRU [email protected] http://cnswww.cns.cwru.edu/~chet/