bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing the way bash expands associative array subscripts


From: Greg Wooledge
Subject: Re: Changing the way bash expands associative array subscripts
Date: Tue, 16 Mar 2021 08:34:40 -0400

On Tue, Mar 16, 2021 at 01:26:30PM +0100, Alex fxmbsw7 Ratchev wrote:
> no idea about your internal rules of keyword and builtin

unicorn:~$ type [
[ is a shell builtin
unicorn:~$ type [[
[[ is a shell keyword

You know how you're allowed to omit quotes inside [[ but not inside [ ?
That's because [[ has magical powers.  It's a "shell keyword".  It has
its own special rules.

> but clearly its
> gotta parse it at most 1. level otherwise its big security fault isnt it
> its a shell fuctionality keyword, unset, so ..

I would not complain if unset became a shell keyword, and had a complete
revamp of its behavior.  As long as we're willing to break backward
compatibility, which Chet seems like he's aiming to do anyway....



reply via email to

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