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


Groups > gnu.bash.bug > #13756

Re: Unset array doesn't work

Path csiph.com!weretis.net!feeder6.news.weretis.net!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!bloom-beacon.mit.edu!bloom-beacon.mit.edu!171.64.64.130.MISMATCH!usenet.stanford.edu!not-for-mail
From Clark Wang <dearvoid@gmail.com>
Newsgroups gnu.bash.bug
Subject Re: Unset array doesn't work
Date Tue, 27 Feb 2018 10:18:24 +0800
Lines 16
Approved bug-bash@gnu.org
Message-ID <mailman.9789.1519697949.27995.bug-bash@gnu.org> (permalink)
References <790ade74-690f-541c-9ab4-6359917442d0@case.edu> <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> <20180226150717.el6qws5ubudnogaj@eeg.ccf.org>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
X-Trace usenet.stanford.edu 1519697950 20942 208.118.235.17 (27 Feb 2018 02:19:10 GMT)
X-Complaints-To action@cs.stanford.edu
To "bash.bug list" <bug-bash@gnu.org>
Envelope-to bug-bash@gnu.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=LL3K2ISD5lEi/B2uUPecS33kErfNTAe3S/PSrNgxxp0=; b=JlTOBFEzc7ywcwM1w8xudEMUPa3U+icQdNmCx6SBUf0tOJFlCqaOjZlLjiZyHPyTzT 06d5z5djj/ayo3nzryQIJYJYlYc9XiX22Sc9Ou9TB1bCF+Z9/PJloKzkaHaskRCk9k7z Y4/RgTUIkjXRfikhohjvvwEMgAnkQwg3206fOzYfTQoQtSwPGjFeJImNCIzXyIGruTca gyBeqsCAIrGSkEbwpdqHxMl7U9P0BT2S/EObevbdJmtc6ko/nPvSIvwmi9DCZtHh7fBB mkmElK/JMTY+DENfpmuFmsUxLidBZ04YJyZmnT0USRJfSZsZtjx5UK1jufYTisqIcb9g iNBw==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=LL3K2ISD5lEi/B2uUPecS33kErfNTAe3S/PSrNgxxp0=; b=Vk8nisfUL9m2VPW1TPml2sZre13B3bGcI0Ey152e7SybfpXbADYE64KSGte98Rs/Qh eEZDAU1FZ3Qh5OeRSpB1jGdlSqmNkz3dm15C8nc1Gd4tek2nokdN/6sOPXhtq0Np4eOk RpC7mi5ExUkPGFp9LU2+j7DFbveFEwN1dIgJPMn1EZSkoNQX+Z+bEffp1WYfmoMhWQfK jXrXFlA8nXf/mCw3dZfjpaM//3mEPZGVKjZTXkdE6VZAgA+GMn6Vx79ZF0/OOf/KFR8o +f/hxg6FAkli95tdoxTp0jR7FV8SaIcUg2RZw5zJQBkjzgEc50VbeoadbbUhxHZRrS3k Ku7g==
X-Gm-Message-State APf1xPAWG4s8ZRVVKzRZcOZrrz1cakJWxTMxrhVUtK371XUWlAOpY4uO 3vhqbsltPlbI2NvaRfiRn212ll2tmKhyoWtgdVinCU63
X-Google-Smtp-Source AH8x2279zZHVNwl53PT6rJWwtDKobhUiLdDHKSRWV9ykE91CwPJVDbmPNDH0rhbU82Q6r2VUVo1IZC9n7wp5h2bjUkE=
X-Received by 10.36.185.15 with SMTP id w15mr14883828ite.73.1519697944913; Mon, 26 Feb 2018 18:19:04 -0800 (PST)
In-Reply-To <20180226150717.el6qws5ubudnogaj@eeg.ccf.org>
X-detected-operating-system by eggs.gnu.org: Genre and OS details not recognized.
X-Received-From 2607:f8b0:4001:c0b::22d
X-Content-Filtered-By Mailman/MimeDel 2.1.21
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.21
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <http://lists.gnu.org/archive/html/bug-bash/>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
Xref csiph.com gnu.bash.bug:13756

Show key headers only | View raw


On Mon, Feb 26, 2018 at 11:07 PM, Greg Wooledge <wooledg@eeg.ccf.org> 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?

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: Unset array doesn't work Clark Wang <dearvoid@gmail.com> - 2018-02-27 10:18 +0800

csiph-web