> > ================================== make test > > =================================== > > make[2]: Leaving directory `/share/chroot/on81/tmp/vim72a/src' > > if test -n "" -a -f po/Makefile; then \ > > cd po; make -f Makefile check VIM=../vim; \ > > fi > > if test vim != vim -a ! -e vim; then \ > > ln -s vim vim; \ > > fi > > /bin/sh: test: argument expected > > make[1]: [test] Error 1 (ignored) > > ================================================================================ > > > > Thing is that -e is not supported by /bin/sh on Solaris. I would suggest > > replacing '-e' by '-x'. > > If the link "vim" already exists but is not executable, then '-x vim' > fails.
I'm not sure I understand. test operates on the target of the link, and
not on the link itself. And if we have the link pointing to file which
is not executable, would the tests run at all ?
> How about using "-r vim". If some file/directory/link "vim" exists then
> it's probably readable. Is "-r" supported by all versions of 'test'?
-r is supported across all shells on Solaris, so it will also work.
--
Vlad
pgprV3V6ilGdK.pgp
Description: PGP signature
