[Top][All Lists]

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

Re: zsh style associative array assignment bug

From: Robert Elz
Subject: Re: zsh style associative array assignment bug
Date: Mon, 29 Mar 2021 03:46:39 +0700

    Date:        Sun, 28 Mar 2021 22:01:14 +0300
    From:        =?UTF-8?B?T8SfdXo=?= <oguzismailuysal@gmail.com>

  | No. An "explicit" empty string would be '', "", or something like that.

No, not in sh it isn't - all quotes do is hide the effects of special
characters (and prevent some uses, eg: as a reserved word).   There are
no "string" (enclosed in quotes) data types in sh, a and 'a' and "a" and \a
are all the exact same thing.   That applies to empty values too, the only
difference is that there needs to be some reason to believe that the empty
value exists, rather than is not present at all.

  | After `=' a value is expected but it's not there

It is there.   It is just empty.

How this applies to associative array init's I neither know nor care.


reply via email to

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