Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Output alignment in

On Aug 24,  5:51pm, kre%munnari.OZ.AU@localhost (Robert Elz) wrote:
-- Subject: Re: Output alignment in

| You could use "case "${#msg}" and 16|17|18|19|[2-9]*) (etc) as the patterns,
| but the way I wrote it works on even the oldest Bourne style shell
| (${#var} is a later addition) and to me anyway, is just more obvious
| (some shells might not like the "local" declaration, but that can just be
| removed if needed).

I guess is "special" because it needs to be written in
the least common denominator shell, so kre's ?? code is probably
the way to go here.


Home | Main Index | Thread Index | Old Index