[WIP 2/3] cli/insert: move several file/directory manipulation routines into a new...
[notmuch-archives.git] / 08 / 1c521618ac4b4b881dc74e0050807fe8a637b8
1 Return-Path: <Vladimir.Marek@Oracle.COM>\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 0130C40EC32\r
6         for <notmuch@notmuchmail.org>; Mon,  9 Apr 2012 05:20:05 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -4.999\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-4.999 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_HI=-5, UNPARSEABLE_RELAY=0.001]\r
13         autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id 6-xEJTBh-dZf for <notmuch@notmuchmail.org>;\r
17         Mon,  9 Apr 2012 05:20:05 -0700 (PDT)\r
18 Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227])\r
19         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 95B5140EC31\r
22         for <notmuch@notmuchmail.org>; Mon,  9 Apr 2012 05:20:05 -0700 (PDT)\r
23 Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237])\r
24         by acsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with\r
25         ESMTP id q39CK4FE000413\r
26         (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK)\r
27         for <notmuch@notmuchmail.org>; Mon, 9 Apr 2012 12:20:05 GMT\r
28 Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157])\r
29         by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id\r
30         q39CK2Zw008412\r
31         (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)\r
32         for <notmuch@notmuchmail.org>; Mon, 9 Apr 2012 12:20:04 GMT\r
33 Received: from abhmt119.oracle.com (abhmt119.oracle.com [141.146.116.71])\r
34         by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id\r
35         q39CK2Oc003075\r
36         for <notmuch@notmuchmail.org>; Mon, 9 Apr 2012 07:20:02 -0500\r
37 Received: from pub.czech.sun.com (/10.163.20.32)\r
38         by default (Oracle Beehive Gateway v4.0)\r
39         with ESMTP ; Mon, 09 Apr 2012 05:20:02 -0700\r
40 Date: Mon, 9 Apr 2012 14:19:30 +0200\r
41 From: Vladimir Marek <Vladimir.Marek@Oracle.COM>\r
42 To: Notmuch Mail <notmuch@notmuchmail.org>\r
43 Subject: Re: [PATCH 1/4] Make configure use /bin/bash instead of /bin/sh\r
44 Message-ID: <20120409121930.GA10554@pub.czech.sun.com>\r
45 Mail-Followup-To: Notmuch Mail <notmuch@notmuchmail.org>\r
46 References: <1333966665-10469-1-git-send-email-Vladimir.Marek@oracle.com>\r
47         <1333966665-10469-2-git-send-email-Vladimir.Marek@oracle.com>\r
48         <CAB+hUn9eVVBN7xzMSUT6kB2+MNn8H6KoKuxGDOwck0sgp9qgmw@mail.gmail.com>\r
49 MIME-Version: 1.0\r
50 Content-Type: text/plain; charset=utf-8\r
51 Content-Disposition: inline\r
52 In-Reply-To:\r
53  <CAB+hUn9eVVBN7xzMSUT6kB2+MNn8H6KoKuxGDOwck0sgp9qgmw@mail.gmail.com>\r
54 User-Agent: Mutt/1.5.21 (2010-09-15)\r
55 X-Source-IP: acsinet21.oracle.com [141.146.126.237]\r
56 X-Auth-Type: Internal IP\r
57 X-CT-RefId: str=0001.0A090206.4F82D3F5.0056,ss=1,re=0.000,fgs=0\r
58 X-BeenThere: notmuch@notmuchmail.org\r
59 X-Mailman-Version: 2.1.13\r
60 Precedence: list\r
61 List-Id: "Use and development of the notmuch mail system."\r
62         <notmuch.notmuchmail.org>\r
63 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
64         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
65 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
66 List-Post: <mailto:notmuch@notmuchmail.org>\r
67 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
68 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
69         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
70 X-List-Received-Date: Mon, 09 Apr 2012 12:20:06 -0000\r
71 \r
72 > > Posix /bin/sh is not capable of running this configure and fails.\r
73\r
74 > What fails? What would it take to make this work on posix sh instead?\r
75\r
76 > The tests do require bash, but generally I think it would be preferable to\r
77 > not depend on bash to build.\r
78 \r
79 Well I gave it a quick stab. This is not posix:\r
80 \r
81 BLAH=$( ... )\r
82 BLAH=$(( ... ))\r
83 ${option%=*}\r
84 ${option%%=*}\r
85 ${option#=*}\r
86 ${option##=*}\r
87 \r
88 First two cases are easy to replace by `...` resp `expr ...`. The rest\r
89 leads to external utility like sed. The dirtiest part of configure is\r
90 parsing the commandline arguments, but that could be replaced by\r
91 /usr/bin/getopts.\r
92 \r
93 If it is appealing way of doing that, I can rework my patch and submit\r
94 it for consideration.\r
95 \r
96 Thank you\r
97 -- \r
98         Vlad\r