bug-bash
[Top][All Lists]
Advanced

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

Re: Is this a bug by any chance?


From: Greg Wooledge
Subject: Re: Is this a bug by any chance?
Date: Mon, 7 Oct 2019 10:26:58 -0400
User-agent: Mutt/1.10.1 (2018-07-13)

On Mon, Oct 07, 2019 at 04:23:44PM +0200, Andreas Schwab wrote:
> On Okt 07 2019, Greg Wooledge <address@hidden> 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]