Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15483 > unrolled thread
| Started by | Greg Wooledge <wooledg@eeg.ccf.org> |
|---|---|
| First post | 2019-10-07 10:26 -0400 |
| Last post | 2019-10-07 10:26 -0400 |
| Articles | 1 — 1 participant |
Back to article view | Back to gnu.bash.bug
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Is this a bug by any chance? Greg Wooledge <wooledg@eeg.ccf.org> - 2019-10-07 10:26 -0400
| From | Greg Wooledge <wooledg@eeg.ccf.org> |
|---|---|
| Date | 2019-10-07 10:26 -0400 |
| Subject | Re: Is this a bug by any chance? |
| Message-ID | <mailman.1228.1570458422.2651.bug-bash@gnu.org> |
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.
Back to top | Article view | gnu.bash.bug
csiph-web