rsh 演算子対応表

このテーブルは Rsh の演算子と他言語の演算子の対応関係を理解するのを助けるためのものです。ここでは全ての Rsh の演算子とその演算子が他の言語でどう使われているかをマッピングしています。コントリビューション歓迎です。

注: Rsh が 0.14.1 以降であることを想定しています。

rsh SQL Python .Net LINQ (C#) PowerShell Bash
== = == == -eq, -is -eq
!= !=, <> != != -ne, -isnot -ne
< < < < -lt -lt
<= <= <= <= -le -le
> > > > -gt -gt
>= >= >= >= -ge -ge
=~ like re, in, startswith Contains, StartsWith -like, -contains =~
!~ not like not in Except -notlike, -notcontains ! "str1" =~ "str2"
+ + + + + +
- - - - - -
* * * * * *
/ / / / / /
in in re, in, startswith Contains, StartsWith -In case in
not-in not in not in Except -NotIn
and and and && -And -a, &&
or or or || -Or -o, ||