set -x cd "$(mktemp -d)" cat > "a.cs" < "b.cs" < "test1.cs" < "test2.cs" < /dev/null "$out/bin/monogame-patcher" replace-call -i test1.exe \ "System.String a::replaceMe(System.String)" \ "System.String b::replacement(System.String)" \ test1 test "$(mono test1.exe)" = "bar called: xxx" echo foo > write_test.txt test "$(mono test2.exe)" = "can write" "$out/bin/monogame-patcher" fix-filestreams -i b.dll b test "$(mono test2.exe)" = "can not write" "$out/bin/monogame-patcher" --help 2>&1 | grep -q fix-filestreams