> Wasn't there a system where it was better to use the built-in test
> rather than the binary?

Yes. Practically every system in existence, I believe.

> Maybe it is really best to search for a decent shell, first.

Perhaps.

Here's a clue: If you have /bin/ksh (which is pretty much a given on every
major Unix-like OS except for Linux and possibly FreeBSD/NetBSD/etc), you
pretty much *always* want that instead of /bin/sh. After I download a new
version of tramp.el, I always replace every instance of /bin/sh with
/bin/ksh before I use it.

Speaking of Solaris in particular, "test -e /; echo $?" works perfectly under
/bin/ksh.

Later,
Ed

Reply via email to