[PATCH 3 of 4] tests: Solaris cmp complains about empty files, even with -s
FUJIWARA Katsunori
foozy at lares.dti.ne.jp
Fri Mar 4 08:47:28 EST 2016
At Thu, 3 Mar 2016 07:27:14 -0800,
Danek Duvall wrote:
>
> FUJIWARA Katsunori wrote:
>
> > AFAIK, /bin/cmp (/usr/bin/cmp shares same inode with it) on Solaris
> > stops showing "cmp: EOF on foobar" if -s is specified.
> >
> > At least, cmp on OI 151a2 (a little old, though) below does so. What
> > version of cmp is used on your environment ?
> >
> > $ /bin/cmp --version
> > version cmp (AT&T Research) 2009-01-05
> >
> >
> > FYI, according to source tree of (Open)Solaris, system default cmp
> > command consists of files below, and all "cmp: EOF on %s" output in
> > the latter file is always suppressed by -s (CMP_SILENT).
> >
> > - main() to dispatch to some basic commands:
> > https://bitbucket.org/illumos/illumos-gate/src/tip/usr/src/cmd/ksh/builtins/alias.c
> >
> > - core logic of cmp:
> > https://bitbucket.org/illumos/illumos-gate/src/tip/usr/src/lib/libcmd/common/cmp.c
> >
> > (or https://github.com/illumos/illumos-gate)
>
> Oracle Solaris doesn't use the ksh93 implementations of various core
> commands like cmp; we're back to using the original Solaris implementation
> as of Solaris 11 (build 169, which came after the close).
Thank you for information of Solaris11. I got Solaris11 environment,
and confirmed both the issue and effect of this patch.
> I'm happy to file a bug against cmp; it certainly seems like a message that
> should be silenced by -s, but that won't help us here.
>
> Thanks,
> Danek
>
----------------------------------------------------------------------
[FUJIWARA Katsunori] foozy at lares.dti.ne.jp
More information about the Mercurial-devel
mailing list