]> git.lizzy.rs Git - rust.git/commitdiff
Use more convenient and UNIX-agnostic shebang
authorSébastien Santoro <dereckson@espace-win.org>
Mon, 13 Nov 2017 13:48:26 +0000 (13:48 +0000)
committerSébastien Santoro <dereckson@espace-win.org>
Sat, 2 Dec 2017 01:03:59 +0000 (01:03 +0000)
When using bash-specific features, scripts using env to call bash
are more convenient, as bash be installed in different places
according the OS.

Same applies for other languages' interpreters.

src/etc/test-float-parse/runtests.py
src/test/ui/update-all-references.sh
src/test/ui/update-references.sh

index 75c92b9b15ca28f6731ec75d16f8f03a09768304..d520c9bd5c30a4f39555f22941aae1d55f5a1e93 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/python2.7
+#!/usr/bin/env python2.7
 #
 # Copyright 2015 The Rust Project Developers. See the COPYRIGHT
 # file at the top-level directory of this distribution and at
index ddd69c399a5c17969e7b75b5fc2fad30646f5c6d..bfc6f923f9d2eb0b196ebd6d8c8b52fee321dfa1 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright 2015 The Rust Project Developers. See the COPYRIGHT
 # file at the top-level directory of this distribution and at
index aa99d35f7aa779924dd17c96675ee50449f3343f..b9ded7d1e951cefcda20b1f3c2be8d83167a1986 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright 2015 The Rust Project Developers. See the COPYRIGHT
 # file at the top-level directory of this distribution and at