bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unset array doesn't work


From: Greg Wooledge
Subject: Re: Unset array doesn't work
Date: Mon, 26 Feb 2018 10:07:17 -0500
User-agent: NeoMutt/20170113 (1.7.2)

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}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]