[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unset array doesn't work
From: |
Robert Elz |
Subject: |
Re: Unset array doesn't work |
Date: |
Thu, 01 Mar 2018 05:38:31 +0700 |
Date: Wed, 28 Feb 2018 15:14:58 -0500
From: Chet Ramey <address@hidden>
Message-ID: <address@hidden>
| Yes, that's what I said. In the current scope, unset arranges for the
| variable to appear unset. In a previous scope, unset just removes the
| variable, which uncovers an instance of the variable at a (further)
| previous scope.
Were I you, I would simply change the "in a previous scope" behaviour to
match the "in the current scope" behaviour. That makes it consistent,
and rational.
I cannot believe that there is anything anywhere which depends upon the
current weirdness.
I'd also forget "remove" as anything that unset is supposed to achieve,
and I would change "appear" to "be" in the description of the current scope
behaviour.
kre
- Re: Unset array doesn't work, (continued)
- 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
- Re: Unset array doesn't work, Chet Ramey, 2018/02/28
- Re: Unset array doesn't work, don fong, 2018/02/28
- Re: Unset array doesn't work,
Robert Elz <=