Solaris fixes for a few tests

Giorgos Keramidas keramida at ceid.upatras.gr
Wed Oct 18 19:09:23 CDT 2006


On 2006-10-18 16:03, Danek Duvall <danek.duvall at sun.com> wrote:
> On Wed, Oct 18, 2006 at 08:41:30PM +0200, Thomas Arendsen Hein 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.
> 
> I can't speak for BSD, but on Solaris, /bin is simply a symlink to
> /usr/bin, so /usr/bin/test would be fine.  As would explicit -f/-d tests,
> if Alexis is comfortable with that; I didn't want to change the semantics
> that way without the original author's approval.

I'd probably prefer -d/-f tests -- at least from a portability perspective.
On FreeBSD (probably other BSD's too), /bin is not a symlink to /usr/bin.

    $ ls -ldF /bin /usr/bin          
    drwxr-xr-x  2 root  wheel  - 1024 Oct 19 01:14 /bin/
    drwxr-xr-x  2 root  wheel  - 7168 Oct 19 01:14 /usr/bin/
    $ uname -v
    FreeBSD 7.0-CURRENT #1: Thu Oct 19 02:54:22 EEST 2006 \
        build at gothmog.pc:/home/build/obj/home/build/src/sys/GOTHMOG 
    $


More information about the Mercurial-devel mailing list