help-bash
[Top][All Lists]
Advanced

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

Re: >= and <= for string comparison


From: Lawrence Velázquez
Subject: Re: >= and <= for string comparison
Date: Wed, 18 Jan 2023 03:11:37 -0500
User-agent: Cyrus-JMAP/3.7.0-alpha0-1187-g678636ba0d-fm-20230113.001-g678636ba

On Tue, Jan 17, 2023, at 7:59 PM, Ruiyang Peng wrote:
> It seems that bash's lexical is not so easy to change, so how about using
> -eq, -gt, -lt etc like arithmetic?

Huh?  Those operators are already defined to perform arithmetic
comparisons.  How could they be used for lexicographic comparisons
too?

-- 
vq



reply via email to

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