1 Return-Path: <tomi.ollila@iki.fi>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 3A92F431FBC
\r
6 for <notmuch@notmuchmail.org>; Wed, 21 May 2014 15:21:27 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id I4n7OQ+CsWwf for <notmuch@notmuchmail.org>;
\r
16 Wed, 21 May 2014 15:21:18 -0700 (PDT)
\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])
\r
18 by olra.theworths.org (Postfix) with ESMTP id 7C2DA431FAE
\r
19 for <notmuch@notmuchmail.org>; Wed, 21 May 2014 15:21:18 -0700 (PDT)
\r
20 Received: from guru.guru-group.fi (localhost [IPv6:::1])
\r
21 by guru.guru-group.fi (Postfix) with ESMTP id DB289100090;
\r
22 Thu, 22 May 2014 01:21:09 +0300 (EEST)
\r
23 From: Tomi Ollila <tomi.ollila@iki.fi>
\r
24 To: David Bremner <david@tethera.net>, Fraser Tweedale <frase@frase.id.au>,
\r
25 notmuch@notmuchmail.org
\r
26 Subject: Re: [PATCH] configure: use cc/c++ when GCC not installed
\r
27 In-Reply-To: <878upu6ghm.fsf@maritornes.cs.unb.ca>
\r
28 References: <1400662721-68562-1-git-send-email-frase@frase.id.au>
\r
29 <m2fvk2q5bh.fsf@guru.guru-group.fi>
\r
30 <878upu6ghm.fsf@maritornes.cs.unb.ca>
\r
31 User-Agent: Notmuch/0.18+12~g9d41f94 (http://notmuchmail.org) Emacs/24.3.1
\r
32 (x86_64-unknown-linux-gnu)
\r
33 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL
\r
34 $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F
\r
35 !)g;OY^,BjTbr)Np:%c_o'jj,Z
\r
36 Date: Thu, 22 May 2014 01:21:09 +0300
\r
37 Message-ID: <m2tx8ipycq.fsf@guru.guru-group.fi>
\r
39 Content-Type: text/plain; charset=utf-8
\r
40 Content-Transfer-Encoding: quoted-printable
\r
41 X-BeenThere: notmuch@notmuchmail.org
\r
42 X-Mailman-Version: 2.1.13
\r
44 List-Id: "Use and development of the notmuch mail system."
\r
45 <notmuch.notmuchmail.org>
\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
47 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
49 List-Post: <mailto:notmuch@notmuchmail.org>
\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
52 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
53 X-List-Received-Date: Wed, 21 May 2014 22:21:27 -0000
\r
55 On Wed, May 21 2014, David Bremner <david@tethera.net> wrote:
\r
57 > Tomi Ollila <tomi.ollila@iki.fi> writes:
\r
59 >> hash is builtin in modern shells, and is command in some systems
\r
60 >> which(1) is builtin in zsh (only?). Solaris 10 which(1) exits 0
\r
61 >> even the command is not found.
\r
65 > I thought "command -v" was the posix way of testing for a binary?
\r
68 Ok, I wrote quite a few lines why hash instead of command -v,
\r
69 just to finally notice this:
\r
71 $ dash -c 'hash zapdsb=C2=A0|| echo foo'
\r
72 dash: 1: hash: zapdsb=C2=A0: not found
\r
77 $ ksh -c 'hash zapdsb=C2=A0|| echo foo'
\r
78 $ mksh -c 'hash zapdsb=C2=A0|| echo foo'
\r
80 Wat! hash in these shells do not exit nonzero -- so good with my which(1)
\r
83 So I change my preference totally -- `command -v` instead of `hash` -- we
\r
84 have to fix the current uses of `hash` too...
\r