Re: [EXT]Re: Suddenly, periods / dots in variable values are converted t
From:
Kerin Millar
Subject:
Re: [EXT]Re: Suddenly, periods / dots in variable values are converted to space
Date:
Tue, 24 Jan 2023 08:09:10 +0000
On Mon, 23 Jan 2023 21:36:05 -0700
Chandler <admin@genome.arizona.edu> wrote:
> Greg Wooledge wrote on 1/23/23 5:44 PM:
> > localized to a single command, as in:
> > IFS=. read -ra myarray ...
> > or in a function:
> > join() { local IFS="$1"; shift; printf '%s\n' "$*"; }
> Yes that's what I figured, but, can it be both, without local? It was
> something like this:
> join() {
> IFS=. read -ra myarray ...
> ...
> }
It can't possibly have been on account of that particular example. The
assignment to IFS had to have been performed independently, be it within that
function or elsewhere.
--
Kerin Millar