Looking at this: 
https://stackoverflow.com/questions/5349718/how-can-i-repeat-a-character-in-bash
Another simpler candidate is:
`printf '%*s' $total | tr ' ' '-'`
There is a pipe, ok, but still much fewer calls to external commands. :)
printf is already used all around, and tr seems available on OpenBSD.
Runs even in (t)csh! (this is of no use since the rest of the script won't)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2060#issuecomment-469408651

Reply via email to