|
From: | L A Walsh |
Subject: | Re: parameter expansion null check fails for arrays when [*] or [@] is used |
Date: | Wed, 23 Mar 2022 01:48:48 -0700 |
User-agent: | Thunderbird |
On 2022/03/23 00:25, Ilkka Virta wrote:
The POSIX phraseology is that "null" means the empty string.
---- POSIX phraseology applies to the POSIX language. In 'C' char *s = NULL is not the same as char *s=""; They aren't the same at the machine level nor at the language level. In perl: my $s = undef; is not the same as my $s = ""; Off hand, I don't know of any computer language that equates them (doesn't mean there is none). undef = unset null may be set but ANSI defines '\0' as NUL. Is that the same as null?
[Prev in Thread] | Current Thread | [Next in Thread] |