Path: csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: Greg Wooledge Newsgroups: gnu.bash.bug Subject: Re: Is this a bug by any chance? Date: Mon, 7 Oct 2019 10:26:58 -0400 Lines: 19 Approved: bug-bash@gnu.org Message-ID: References: <99440807.4131727.1570301315442.ref@mail.yahoo.com> <99440807.4131727.1570301315442@mail.yahoo.com> <20191007124737.GM28751@eeg.ccf.org> <7892e473-d0d2-1207-8eb1-916b8571a496@passchier.net> <20191007133716.GR28751@eeg.ccf.org> <87v9t01vnz.fsf@igel.home> <20191007142658.GU28751@eeg.ccf.org> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: usenet.stanford.edu 1570458423 8170 209.51.188.17 (7 Oct 2019 14:27:03 GMT) X-Complaints-To: action@cs.stanford.edu To: bug-bash@gnu.org Envelope-to: bug-bash@gnu.org Mail-Followup-To: bug-bash@gnu.org Content-Disposition: inline In-Reply-To: <87v9t01vnz.fsf@igel.home> User-Agent: Mutt/1.10.1 (2018-07-13) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 139.137.100.1 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <20191007142658.GU28751@eeg.ccf.org> X-Mailman-Original-References: <99440807.4131727.1570301315442.ref@mail.yahoo.com> <99440807.4131727.1570301315442@mail.yahoo.com> <20191007124737.GM28751@eeg.ccf.org> <7892e473-d0d2-1207-8eb1-916b8571a496@passchier.net> <20191007133716.GR28751@eeg.ccf.org> <87v9t01vnz.fsf@igel.home> Xref: csiph.com gnu.bash.bug:15483 On Mon, Oct 07, 2019 at 04:23:44PM +0200, Andreas Schwab wrote: > On Okt 07 2019, Greg Wooledge 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.