Path: csiph.com!3.us.feeder.erje.net!feeder.erje.net!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail From: Grisha Levit Newsgroups: gnu.bash.bug Subject: Re: temp env allows variables that look like array subscripts Date: Sat, 8 Dec 2018 23:45:01 -0500 Lines: 5 Approved: bug-bash@gnu.org Message-ID: References: <38b37862-1f2b-fb34-6ab6-8cd6c9439908@case.edu> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: usenet.stanford.edu 1544330717 31339 208.118.235.17 (9 Dec 2018 04:45:17 GMT) X-Complaints-To: action@cs.stanford.edu Cc: bug-bash To: Chester Ramey Envelope-to: bug-bash@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=M0q1wU59QhgmfstdMBiRwMAL/xF/LFE7xPsGncgTK1k=; b=YVdi5knLw0OlffmIMGwHW1i+XpWgYbFl/TzVsYNySuu34R6/kr3LJxLNeD8oZn2CSO gQwnD8g2qJL6nA5F5ExHtAB5TGGwwmhkKyV9c80Qw9+KsVyQF7yFthKHu1VS84rOqMfT U1/XBNrf6me9sXLY8HGIgj/2YU2D8+jWOfEKTyUjo+qNd2UISOKY5inmGY52DTzHLoMN bOTLFBjlpOJvYFUtk10pDjqayMSUNnD14/tEUxsfD5W5L6lJ7lvjEpWGJkTJPI6mEJww SQTa//wHHab+vyUYRKg6PMflA0Yb5FazNkBcKbspyhYmzCY2+lPckdLsKhFcyuk0R0lM nSQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=M0q1wU59QhgmfstdMBiRwMAL/xF/LFE7xPsGncgTK1k=; b=l5LiBWEQb0Bh8DPaHjBEjeQaSG7XIhPvhDtXyT5qUxZg1EQO8vKWKQ7bOWX0R1dmLU Xf5Ky+jH1eLIfC1xQVHkYQoPkAq8+bX9xymmDbqB3qfZzVsEhBzsmR4HJqxJ3KYoBuB5 tpiS8LUQ5dC40nVqmBn/NbLCuNmHMNjomd5EFa9emf8jB8mX2A7SzWyK8T/EwpMeNW/l p7m8xNWfqGsYyOn0Dwu3AzcXWDkqPVyjXTd/P7UAvbyLpMmW6qcJWLefAhETWmf1i6qi XS+rYEBfCtjdUlDM7NDW3zcnvkaJlaicLM6njFb81c0MdGImUCEAPLdjwc+j1QFIZ5m0 sOdg== X-Gm-Message-State: AA+aEWZHCvEibLzF2nWFv+jBaB4oZ8ZAZEYK6tVO+6Bdulfqijlezmj+ EwddQbCi3cUFbArbImZ/AQZZlVSXyfSww4cKUB4= X-Google-Smtp-Source: AFSGD/Wc2OhxCOZczC4GufWSxG0fl5PIjZqxnfZpn40qvl+bgHEBlm1+tVRdnryzlhvL/PNF904AfDURc8yt849NH2c= X-Received: by 2002:a37:3a04:: with SMTP id h4mr6700893qka.53.1544330712714; Sat, 08 Dec 2018 20:45:12 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::731 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com gnu.bash.bug:14898 FWIW, namerefs in the temporary environment bypass the implemented checks: $ declare -n ref=var[0] $ ref=X printenv 'var[0]' X