-i option doesn't work on macosx