Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #13751 > unrolled thread
| Started by | Greg Wooledge <wooledg@eeg.ccf.org> |
|---|---|
| First post | 2018-02-26 10:07 -0500 |
| Last post | 2018-02-26 10:07 -0500 |
| 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: Unset array doesn't work Greg Wooledge <wooledg@eeg.ccf.org> - 2018-02-26 10:07 -0500
| From | Greg Wooledge <wooledg@eeg.ccf.org> |
|---|---|
| Date | 2018-02-26 10:07 -0500 |
| Subject | Re: Unset array doesn't work |
| Message-ID | <mailman.9753.1519657673.27995.bug-bash@gnu.org> |
On Mon, Feb 26, 2018 at 09:57:10AM -0500, Clint Hepner wrote:
> If necessary, you can define a global (at the expense of a single subprocess)
>
> myIFS=$(printf ' \t\n')
That actually won't work, because $(...) strips the trailing newline(s).
This might work:
myIFS=$(printf ' \t\nx') myIFS=${myIFS%x}
Back to top | Article view | gnu.bash.bug
csiph-web