bug-gawk
[Top][All Lists]
Advanced

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

Ensure string comparison


From: Peng Yu
Subject: Ensure string comparison
Date: Sun, 12 Jul 2020 12:03:49 -0500

Hi,

To make sure the comparison is always string comparison, should I
always use the following code for string comparsion between $1 and $2,

$1 "" <= $2 ""

instead of using the following?

$1 <= $2

Is the following OK? Thanks.

$1 "" <= $2

-- 
Regards,
Peng



reply via email to

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