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


Groups > gnu.bash.bug > #13751

Re: Unset array doesn't work

From Greg Wooledge <wooledg@eeg.ccf.org>
Newsgroups gnu.bash.bug
Subject Re: Unset array doesn't work
Date 2018-02-26 10:07 -0500
Message-ID <mailman.9753.1519657673.27995.bug-bash@gnu.org> (permalink)
References (1 earlier) <a56e05b1-0b34-1cb2-6073-91c12f27e228@gmail.com> <a642644f-e475-6361-140e-5b47ab4e321c@case.edu> <755d61fa-d2bc-8855-bc30-4388aff40691@gmail.com> <9974.1519637469@jinx.noi.kre.to> <F9DB73D6-F1EF-4F50-8302-3D42D72C1FB4@gmail.com>

Show all headers | View raw


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 gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web