Ian Lance Taylor <ian(at)airs(dot)com> writes:
> the test built in to /bin/sh does not support -ef, although
> /usr/bin/test does support it.
Rather than assuming a test with -ef is available, ISTM the portable
answer is not to depend on it at all. Why not forget the whole thing
and use something like
if [ `cd "$srcdir" ; /bin/pwd` = `/bin/pwd` ] ; then : ; else
> The second is that /bin/find requires
> an explicit -print when -o is used.
This is a good change. A lot of older "find"s don't provide a default
-print action at all (-o or no -o), so writing -print is the portable
way to use it. I don't think you need two of them though.
regards, tom lane