Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Windows 7でMINGW32を使用しています。残念ながら、bashバージョン3.1が付属しているため、シェルスクリプトで何かをしようとすると
if [ $x =~ $y ]
$y は正規表現です。`=~' の近くで「条件付き二項演算子が必要です」というメッセージが表示されます。
bash 3.2 以降の bash.exe のバージョンはありますか? そうでない場合、3.1 のパターンに対して文字列をテストするにはどうすればよいですか?