From owner-freebsd-standards@FreeBSD.ORG Fri Nov 24 12:18:37 2006 Return-Path: X-Original-To: freebsd-standards@freebsd.org Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D3DF416A519 for ; Fri, 24 Nov 2006 12:18:37 +0000 (UTC) (envelope-from sniimi@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.228]) by mx1.FreeBSD.org (Postfix) with ESMTP id B1A1C43D4C for ; Fri, 24 Nov 2006 12:17:55 +0000 (GMT) (envelope-from sniimi@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so775810wxc for ; Fri, 24 Nov 2006 04:18:36 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:x-google-sender-auth; b=WhY63R+YCitv5DVi40Bk/dTUqJ/lJuPqEX0F3TyjVPBJJeVcRLoa09QKkpoG/KCqKC5g0Wc7EoMpRDxid7x9SK9OmW3D6X5ifB82Rw9ti6h5VOBwywwrasZHNfFfXdr+OsfYD5X03hMOIGjrbuGBAW8TT6XP6ieZlJdMYOxvqY0= Received: by 10.100.37.4 with SMTP id k4mr1589274ank.1164370715985; Fri, 24 Nov 2006 04:18:35 -0800 (PST) Received: by 10.100.45.11 with HTTP; Fri, 24 Nov 2006 04:18:35 -0800 (PST) Message-ID: <7a2b18c80611240418w43776195p340d1ff49ac69786@mail.gmail.com> Date: Fri, 24 Nov 2006 21:18:35 +0900 From: "NIIMI Satoshi" Sender: sniimi@gmail.com To: freebsd-standards@freebsd.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_24_2638223.1164370715927" X-Google-Sender-Auth: fe2b3e08e566bb5a Subject: type command bahaviour of FreeBSD's /bin/sh (Fwd: [issue426] hgmerge assumes FileMerge to be exist unconditionally on FreeBSD) X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Nov 2006 12:18:37 -0000 ------=_Part_24_2638223.1164370715927 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline [ Please CC me when reply since I don't subscribe this list. ] Hi, FreeBSD's /bin/sh produces: | % sh -c 'type /nonexistent; echo $?' | /nonexistent: No such file or directory | 0 whereas | % bash -c 'type /nonexistent; echo $?' | bash: line 0: type: /nonexistent: not found | 1 | ksh -c 'type /nonexistent; echo $?' | /nonexistent: not found | 1 Does the current behaviour of /bin/sh's type command conform to the standards? Thanks, -- NIIMI Satoshi ---------- Forwarded message ---------- From: Giorgos Keramidas Date: 2006/11/22 1:57 Subject: Re: [issue426] hgmerge assumes FileMerge to be exist unconditionally on FreeBSD To: NIIMI Satoshi Cc: mercurial-devel@selenic.com On 2006-11-21 16:05, NIIMI Satoshi wrote: > > New submission from NIIMI Satoshi : > > 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@freebsd.org too, so we can fix the bug if it is indeed a bug? - Giorgos _______________________________________________ Mercurial-devel mailing list Mercurial-devel@selenic.com http://selenic.com/mailman/listinfo/mercurial-devel ------=_Part_24_2638223.1164370715927 Content-Type: application/pgp-signature Content-Transfer-Encoding: base64 X-Attachment-Id: 0.0.1 Content-Disposition: attachment LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KVmVyc2lvbjogR251UEcgdjEuNC41IChGcmVl QlNEKQoKaUQ4REJRRkZZekFLMWcrVUdqR0dBN1lSQW1YMUFKMGJWNGlWazBTY1k3VWZUQmxDRllN SmNpVHlrUUNnb0NIcApPYVRaeXJ6RVAvcGhMM3l4bzUwSzJKND0KPU41STAKLS0tLS1FTkQgUEdQ IFNJR05BVFVSRS0tLS0tCgo= ------=_Part_24_2638223.1164370715927--