On 2024-04-03 16:57:50 +0200, Vincent Lefevre wrote:
> However, same question for
> 
>   test -e = -o ! ''
> 
> Here, with ksh93u+m 1.0.8-1 under Debian:
> 
> $ test -e = -o ! '' ; echo $?                                                 
>  
> 1
> 
> which I think it is wrong (with any meaning, I don't see how the
> result could be 1, anyway). The other implementations regard this
> as an error.

Actually, I think that here, ksh93 regards '=' as a binary primary
as expected. The result 1 is due to a more general bug:

$ test a = a b ; echo $?
0

while this should have been an error. I've reported this bug here:

  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1068340

-- 
Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Reply via email to