LoginSignup
4
3

More than 5 years have passed since last update.

diffで「予期しないトークン (' 周辺に構文エラーがあります」

Posted at

たとえばこんな感じで2つのシェルスクリプトの実行結果をdiffで比較するシェルスクリプトがあったとして、これを実行すると、タイトルのようなエラーが出ます。

compare.sh
#!/bin/sh
diff <(ndisasm hogehoge.out) <(ndisasm fugafuga.out)

シバンをbashに変えると、エラーはなくなりました。

compare.sh
#!/bin/bash
diff <(ndisasm hogehoge.out) <(ndisasm fugafuga.out)

なんでなんでしょうね。

4
3
4

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3