I have inherited a script as part of a build process for an application, and when I run it on the build server (Ubuntu Precise) it runs fine, but when I run it on my mac I get "illegal option -- t". The command that has problems is simple, it's just a call to find
:
find -type f -not -path [...]
On testing I have discovered that it is the -type
option that has trouble on my Mac. If I run instead:
find ./ -type f -not -path [...]
It works, yet both work (seemingly equivalently) on the Linux box. Therefore my question is, are there significant differences between OSX's (BSD) find
binary and the Linux (GNU?) find
and will my modification to the script (adding the ./
path at the start) break anything that I haven't discovered yet?