On Mon, Oct 07, 2019 at 04:23:44PM +0200, Andreas Schwab wrote:
> On Okt 07 2019, Greg Wooledge <wooledg@eeg.ccf.org> wrote:
>
> > x=(1 2 3 4 5 -n '/*' 'hello world')
> > for z in "${x[@]}"; do
> > printf %s "$z"
> > done
> > echo
>
> (IFS=; printf '%s\n' "${x[*]}")
Or avoid the fork():
printf %s "${x[@]}"
echo
I preserved the original poster's loop, because it's probably
another !b9 question.