Solaris fixes for a few tests
Alexis S. L. Carvalho
alexis at cecm.usp.br
Wed Oct 18 20:34:30 UTC 2006
Thus spake Giorgos Keramidas:
> On 2006-10-18 20:41, Thomas Arendsen Hein <thomas at intevation.de> wrote:
> > * Danek Duvall <danek.duvall at sun.com> [20061018 19:45]:
> > > Solaris' /bin/sh doesn't understand the "-e" test, but /bin/test does.
> >
> > Thanks, test seem to run (not finished yet) fine on Solaris8 now,
> > but I don't have /bin/test (only /usr/bin/test) on Debian GNU/Linux.
>
> Solaris and BSD use `/bin/test'. Probably because /usr may not be
> available early enough during boot-time to access `/usr/bin/test'.
>
> Do the tests work better without an explicit path, i.e. like this?
>
> if test -e foo ; then
> foosuccess
> fi
That's what's being used right now. I'll change them to use test -d and
test -f instead (there are other tests using -d/-f, so they should be
ok...)
Alexis
More information about the Mercurial-devel
mailing list