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: 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 <chet.ramey@case.edu>
    Message-ID:  <b4615d2e-cf2f-ea60-c8c6-44b6eb8dba76@case.edu>

  | 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




reply via email to

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