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

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/2060#issuecomment-469370771">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ9eFWKUlGwo2962AMqI6XX7bBdJtks5vTWlogaJpZM4aIL7r">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABDrJ3zjfIDeuQ5Iu9HxW37-6jYi1sQXks5vTWlogaJpZM4aIL7r.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"PERSON","message":"@johndescs in #2060: Looking at this: https://stackoverflow.com/questions/5349718/how-can-i-repeat-a-character-in-bash\r\nAnother simpler candidate is:\r\n`printf '%*s' 100 | tr ' ' '-'`\r\nThere is a pipe, ok, but still much fewer calls to external commands. :)\r\nprintf is already used all around, and tr seems available on OpenBSD.\r\nRuns even in (t)csh! (this is of no use since the rest of the script won't)"}],"action":{"name":"View Pull Request","url":"https://github.com/geany/geany/pull/2060#issuecomment-469370771"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/2060#issuecomment-469370771",
"url": "https://github.com/geany/geany/pull/2060#issuecomment-469370771",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>