Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #13751 > unrolled thread

Re: Unset array doesn't work

Started byGreg Wooledge <wooledg@eeg.ccf.org>
First post2018-02-26 10:07 -0500
Last post2018-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.


Contents

  Re: Unset array doesn't work Greg Wooledge <wooledg@eeg.ccf.org> - 2018-02-26 10:07 -0500

#13751 — Re: Unset array doesn't work

FromGreg Wooledge <wooledg@eeg.ccf.org>
Date2018-02-26 10:07 -0500
SubjectRe: 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}

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web