1 Return-Path: <joel.borggren.franck@gmail.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 ACC34431FB6
\r
6 for <notmuch@notmuchmail.org>; Wed, 1 Dec 2010 12:28:38 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 1lQJrUL4aZsu for <notmuch@notmuchmail.org>;
\r
17 Wed, 1 Dec 2010 12:28:38 -0800 (PST)
\r
18 Received: from mail-ey0-f181.google.com (mail-ey0-f181.google.com
\r
20 by olra.theworths.org (Postfix) with ESMTP id 9B519431FB5
\r
21 for <notmuch@notmuchmail.org>; Wed, 1 Dec 2010 12:28:37 -0800 (PST)
\r
22 Received: by eyb6 with SMTP id 6so4396064eyb.26
\r
23 for <notmuch@notmuchmail.org>; Wed, 01 Dec 2010 12:28:34 -0800 (PST)
\r
24 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
\r
25 h=domainkey-signature:received:received:from:to:subject:date
\r
26 :message-id:x-mailer:mime-version:content-type
\r
27 :content-transfer-encoding;
\r
28 bh=1MPGwTLaLBv6y1z+FI4wk4LnIRRfv3g/SFOYNo6oVRo=;
\r
29 b=Y7Ly6bFiW9Q+uYZSyDo/9YVNBSH4Vq4JzkpfaR6V/ztMw4XmoaRkvCRz7bbvK8BoUF
\r
30 QqC3jhdGZmQhyuXPvygr1ro192O9kaWx8sKk/9rfs6zXeJmAPwJkemGDvIpz3QA4kRHM
\r
31 iEGQnjfAbJ2LM3H5ZZTQX8dCL5CfryyzGuZxg=
\r
32 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
\r
33 h=from:to:subject:date:message-id:x-mailer:mime-version:content-type
\r
34 :content-transfer-encoding;
\r
35 b=tW8WHCFDeJytd3xBXjMI90YQKCQYPPk2aIJR8beGCYcc0sCXG0hZumZn6z+M5+RcDp
\r
36 E9A8OALAs6klLY4Sf4o4oJmEZj2GBwr8hebgNqbDWknEp6oUwQminZosTrBnGPp+MLXF
\r
37 xx3n/UUT1DSabCPXNFjtxvUwKOALaG+v2PNjE=
\r
38 Received: by 10.14.48.12 with SMTP id u12mr7966951eeb.34.1291235314270;
\r
39 Wed, 01 Dec 2010 12:28:34 -0800 (PST)
\r
40 Received: from localhost.localdomain (c80-216-237-236.bredband.comhem.se
\r
42 by mx.google.com with ESMTPS id y5sm52871eeh.22.2010.12.01.12.28.33
\r
43 (version=TLSv1/SSLv3 cipher=RC4-MD5);
\r
44 Wed, 01 Dec 2010 12:28:33 -0800 (PST)
\r
45 From: =?UTF-8?q?Joel=20Borggr=C3=A9n-Franck?= <joel.borggren.franck@gmail.com>
\r
46 To: notmuch@notmuchmail.org
\r
47 Subject: [PATCH] test: change "#!/bin/bash" to "#!/usr/bin/env bash" enhances
\r
49 Date: Wed, 1 Dec 2010 21:27:52 +0100
\r
50 Message-Id: <1291235272-16335-1-git-send-email-joel.borggren.franck@gmail.com>
\r
51 X-Mailer: git-send-email 1.7.3.2
\r
53 Content-Type: text/plain; charset=UTF-8
\r
54 Content-Transfer-Encoding: 8bit
\r
55 X-BeenThere: notmuch@notmuchmail.org
\r
56 X-Mailman-Version: 2.1.13
\r
58 List-Id: "Use and development of the notmuch mail system."
\r
59 <notmuch.notmuchmail.org>
\r
60 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
61 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
62 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
63 List-Post: <mailto:notmuch@notmuchmail.org>
\r
64 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
65 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
66 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
67 X-List-Received-Date: Wed, 01 Dec 2010 20:28:38 -0000
\r
69 From: Joel Borggrén-Franck <jbf@codehouse.se>
\r
71 Change #!/bin/bash at start of tests to "#!/usr/bin/env bash". That way
\r
72 systems running on bash < 4 can prepend bash >= 4 to path before
\r
75 test/README | 6 +++---
\r
76 test/aggregate-results.sh | 2 +-
\r
77 test/author-order | 2 +-
\r
79 test/dump-restore | 2 +-
\r
81 test/encoding | 2 +-
\r
82 test/from-guessing | 2 +-
\r
85 test/maildir-sync | 2 +-
\r
87 test/notmuch-test | 2 +-
\r
91 test/search-output | 2 +-
\r
92 test/test-lib.sh | 2 +-
\r
93 test/test-verbose | 2 +-
\r
94 test/thread-naming | 2 +-
\r
95 test/thread-order | 2 +-
\r
96 test/uuencode | 2 +-
\r
97 test/valgrind/valgrind.sh | 2 +-
\r
98 23 files changed, 25 insertions(+), 25 deletions(-)
\r
100 diff --git a/test/README b/test/README
\r
101 index ebaa3cf..07da480 100644
\r
104 @@ -68,11 +68,11 @@ remaining tests to be unaffected.
\r
108 -The test script is written as a shell script. It should start
\r
109 -with the standard "#!/bin/bash" with copyright notices, and an
\r
110 +The test script is written as a shell script. It should start with
\r
111 +the standard "#!/usr/bin/env bash" with copyright notices, and an
\r
112 assignment to variable 'test_description', like this:
\r
115 + #!/usr/bin/env bash
\r
117 # Copyright (c) 2005 Junio C Hamano
\r
119 diff --git a/test/aggregate-results.sh b/test/aggregate-results.sh
\r
120 index 0f1ea33..732d6ca 100755
\r
121 --- a/test/aggregate-results.sh
\r
122 +++ b/test/aggregate-results.sh
\r
125 +#!/usr/bin/env bash
\r
129 diff --git a/test/author-order b/test/author-order
\r
130 index 9f0b931..2d79873 100755
\r
131 --- a/test/author-order
\r
132 +++ b/test/author-order
\r
135 +#!/usr/bin/env bash
\r
136 test_description="author reordering;"
\r
139 diff --git a/test/basic b/test/basic
\r
140 index 309779c..e20e994 100755
\r
145 +#!/usr/bin/env bash
\r
147 # Copyright (c) 2005 Junio C Hamano
\r
149 diff --git a/test/dump-restore b/test/dump-restore
\r
150 index 0d78f01..a4de370 100755
\r
151 --- a/test/dump-restore
\r
152 +++ b/test/dump-restore
\r
155 +#!/usr/bin/env bash
\r
156 test_description="\"notmuch dump\" and \"notmuch restore\""
\r
159 diff --git a/test/emacs b/test/emacs
\r
160 index 75dec89..baa6f3d 100755
\r
165 +#!/usr/bin/env bash
\r
166 test_description="emacs interface"
\r
169 diff --git a/test/encoding b/test/encoding
\r
170 index 68cb8ee..673b039 100755
\r
171 --- a/test/encoding
\r
172 +++ b/test/encoding
\r
175 +#!/usr/bin/env bash
\r
176 test_description="encoding issues"
\r
179 diff --git a/test/from-guessing b/test/from-guessing
\r
180 index 6744e68..d8727bb 100755
\r
181 --- a/test/from-guessing
\r
182 +++ b/test/from-guessing
\r
185 +#!/usr/bin/env bash
\r
186 test_description="From line heuristics (with multiple configured addresses)"
\r
189 diff --git a/test/json b/test/json
\r
190 index 7fe2a27..1978f8b 100755
\r
195 +#!/usr/bin/env bash
\r
196 test_description="--format=json output"
\r
199 diff --git a/test/long-id b/test/long-id
\r
200 index 84f9294..85e620f 100755
\r
205 +#!/usr/bin/env bash
\r
206 test_description="messages with ridiculously-long message IDs"
\r
209 diff --git a/test/maildir-sync b/test/maildir-sync
\r
210 index 50a5b8e..2b43127 100755
\r
211 --- a/test/maildir-sync
\r
212 +++ b/test/maildir-sync
\r
215 +#!/usr/bin/env bash
\r
217 test_description="maildir synchronization"
\r
219 diff --git a/test/new b/test/new
\r
220 index 7b396ae..1b7296e 100755
\r
225 +#!/usr/bin/env bash
\r
226 test_description='"notmuch new" in several variations'
\r
229 diff --git a/test/notmuch-test b/test/notmuch-test
\r
230 index 43565e8..d753c81 100755
\r
231 --- a/test/notmuch-test
\r
232 +++ b/test/notmuch-test
\r
235 +#!/usr/bin/env bash
\r
239 diff --git a/test/raw b/test/raw
\r
240 index 4ed237c..b7e265a 100755
\r
245 +#!/usr//bin/env bash
\r
247 test_description='notmuch show --format=raw'
\r
249 diff --git a/test/reply b/test/reply
\r
250 index 99c3376..c0b8e26 100755
\r
255 +#!/usr/bin/env bash
\r
256 test_description="\"notmuch reply\" in several variations"
\r
259 diff --git a/test/search b/test/search
\r
260 index b180c7f..2085fe6 100755
\r
265 +#!/usr/bin/env bash
\r
266 test_description='"notmuch search" in several variations'
\r
269 diff --git a/test/search-output b/test/search-output
\r
270 index b414993..ef870bf 100755
\r
271 --- a/test/search-output
\r
272 +++ b/test/search-output
\r
275 +#!/usr/bin/env bash
\r
276 test_description='various settings for "notmuch search --output="'
\r
279 diff --git a/test/test-lib.sh b/test/test-lib.sh
\r
280 index 04a4c14..89c9a4c 100644
\r
281 --- a/test/test-lib.sh
\r
282 +++ b/test/test-lib.sh
\r
285 +#!/usr/bin/env bash
\r
287 # Copyright (c) 2005 Junio C Hamano
\r
289 diff --git a/test/test-verbose b/test/test-verbose
\r
290 index f29a9c7..4100c05 100755
\r
291 --- a/test/test-verbose
\r
292 +++ b/test/test-verbose
\r
295 +#!/usr/bin/env bash
\r
297 test_description='the verbosity options of the test framework itself.'
\r
299 diff --git a/test/thread-naming b/test/thread-naming
\r
300 index bcc3d61..41b97d9 100755
\r
301 --- a/test/thread-naming
\r
302 +++ b/test/thread-naming
\r
305 +#!/usr/bin/env bash
\r
306 test_description="naming of threads with changing subject"
\r
309 diff --git a/test/thread-order b/test/thread-order
\r
310 index 1819fce..6c3a4b3 100755
\r
311 --- a/test/thread-order
\r
312 +++ b/test/thread-order
\r
315 +#!/usr/bin/env bash
\r
316 test_description="threading when messages received out of order"
\r
319 diff --git a/test/uuencode b/test/uuencode
\r
320 index d509320..d0d16bd 100755
\r
321 --- a/test/uuencode
\r
322 +++ b/test/uuencode
\r
325 +#!/usr/bin/env bash
\r
326 test_description="handling of uuencoded data"
\r
329 diff --git a/test/valgrind/valgrind.sh b/test/valgrind/valgrind.sh
\r
330 index 3bc90f5..78700c0 100755
\r
331 --- a/test/valgrind/valgrind.sh
\r
332 +++ b/test/valgrind/valgrind.sh
\r
335 +#!/usr/bin/env bash
\r
337 base=$(basename "$0")
\r