[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unset array doesn't work
From: |
Clark Wang |
Subject: |
Re: Unset array doesn't work |
Date: |
Tue, 27 Feb 2018 10:18:24 +0800 |
On Mon, Feb 26, 2018 at 11:07 PM, Greg Wooledge <address@hidden> wrote:
> 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}
>
What about myIFS=$(printf ' \n\t')? Does the order of chars in IFS make a
difference?
- Re: Unset array doesn't work, (continued)
- Re: Unset array doesn't work, Nikolai Kondrashov, 2018/02/12
- Re: Unset array doesn't work, Clark Wang, 2018/02/12
- Re: Unset array doesn't work, Nikolai Kondrashov, 2018/02/12
- Re: Unset array doesn't work, Clark Wang, 2018/02/12
- Re: Unset array doesn't work, Nikolai Kondrashov, 2018/02/12
- Re: Unset array doesn't work, Chet Ramey, 2018/02/12
- Re: Unset array doesn't work, Nikolai Kondrashov, 2018/02/12
- Re: Unset array doesn't work, Robert Elz, 2018/02/26
- Re: Unset array doesn't work, Clint Hepner, 2018/02/26
- Re: Unset array doesn't work, Greg Wooledge, 2018/02/26
- Re: Unset array doesn't work,
Clark Wang <=
- Re: Unset array doesn't work, Robert Elz, 2018/02/26
- Re: Unset array doesn't work, Chet Ramey, 2018/02/27
- Re: Unset array doesn't work, Robert Elz, 2018/02/26
- Re: Unset array doesn't work, Chet Ramey, 2018/02/27
- Re: Unset array doesn't work, Chet Ramey, 2018/02/27
- Re: Unset array doesn't work, Chet Ramey, 2018/02/27
- Re: Unset array doesn't work, Robert Elz, 2018/02/27
- Re: Unset array doesn't work, Chet Ramey, 2018/02/28
- Re: Unset array doesn't work, Robert Elz, 2018/02/28
- Re: Unset array doesn't work, Greg Wooledge, 2018/02/28