[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: >= and <= for string comparison
From: |
Tapani Tarvainen |
Subject: |
Re: >= and <= for string comparison |
Date: |
Wed, 18 Jan 2023 10:57:35 +0200 |
On Wed, Jan 18, 2023 at 05:36:46PM +0900, Koichi Murase
(myoga.murase@gmail.com) wrote:
> If we decide to support `<=' and `>=' for strings, to me, the cleanest
> solution seems to be reorganizing the lexical rule inside [[ ... ]] to
> accept <= and >= as single tokens though it would introduce
> incompatibilities.
IMHO that's the only alternative that makes sense. Either do it
that way or don't do it at all.
The obvious ! workaround is better than a new -leq would be.
> I'm currently not sure if it's worth it.
Neither am I.
I've no idea how hard it'd be to implement.
I don't, however, see the incompatibilities as a big problem, although
it would probably be necessary to have some means of disabling the
feature (a switch, POSIXLY_CORRECT &c).
--
Tapani Tarvainen
- Re: >= and <= for string comparison, (continued)
- Re: >= and <= for string comparison, Koichi Murase, 2023/01/18
- Re: >= and <= for string comparison, alex xmb ratchev, 2023/01/18
- Re: >= and <= for string comparison, Ruiyang Peng, 2023/01/18
- Re: >= and <= for string comparison, Koichi Murase, 2023/01/18
- Re: >= and <= for string comparison, Ruiyang Peng, 2023/01/18
- Re: >= and <= for string comparison, Ruiyang Peng, 2023/01/18
- Re: >= and <= for string comparison,
Tapani Tarvainen <=
- Re: >= and <= for string comparison, Ruiyang Peng, 2023/01/18
- Re: >= and <= for string comparison, Lawrence Velázquez, 2023/01/18
- Re: >= and <= for string comparison, Peng Yu, 2023/01/18
- Re: >= and <= for string comparison, Emanuele Torre, 2023/01/18
- Re: >= and <= for string comparison, Greg Wooledge, 2023/01/18
- Re: >= and <= for string comparison, alex xmb ratchev, 2023/01/18
- Re: >= and <= for string comparison, Peng Yu, 2023/01/18
- Re: >= and <= for string comparison, Eduardo Bustamante, 2023/01/18
- Re: >= and <= for string comparison, Peng Yu, 2023/01/19
- Re: >= and <= for string comparison, Lawrence Velázquez, 2023/01/18