help-gawk
[Top][All Lists]
Advanced

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

Re: ensure numeric comparison


From: Andrew J. Schorr
Subject: Re: ensure numeric comparison
Date: Thu, 26 May 2022 18:02:19 -0400
User-agent: Mutt/1.5.21 (2010-09-15)

On Thu, May 26, 2022 at 11:58:54AM -0500, Peng Yu wrote:
> When I say "empty string", I am referring to '' in bash. The input is
> an empty string in a line. But awk, once reading the input in,
> considers it as unassigned. So you did miss this case in the
> discussion. I just wanted to point it out.

I don't understand what you're saying. To repeat: there is a difference between
a variable that has been assigned a value of an empty string (a string that
contains zero characters) vs. a variable that has never been assigned any value
at all. Such variables will behave differently.  Please give an example of the
case that you are concerned about.

Regards,
Andy



reply via email to

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