[issue426] hgmerge assumes FileMerge to be exist unconditionally on FreeBSD

Giorgos Keramidas keramida at freebsd.org
Tue Nov 21 16:57:47 UTC 2006


On 2006-11-21 16:05, NIIMI Satoshi <mercurial-bugs at selenic.com> wrote:
> 
> New submission from NIIMI Satoshi <sa2c at sa2c.net>:
> 
> There is a problem in type command of FreeBSD like:
> | % sh -c 'type /nonexistent; echo $?'
> | /nonexistent: No such file or directory
> | 0
>
> Because of the above feature (bug?), testing
> "/Developer/.../FileMerge" always succeeds and used unconditionally.
> I made a patch to work around this.

The Single Unix Specification version 3 (c.f. page [1]) does not specify
if it's an error *not* to find the 'name' argumennt of type(1), so I am
not sure if this is a bug of FreeBSD's /bin/sh shell.

[1] http://www.opengroup.org/onlinepubs/009695399/utilities/type.html#tag_04_150

Can you please forward this to freebsd-standards at freebsd.org too, so we
can fix the bug if it is indeed a bug?

- Giorgos

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-devel/attachments/20061121/b7749247/attachment.asc>


More information about the Mercurial-devel mailing list