aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Dipert <alan@dipert.org>2015-02-10 15:59:50 -0500
committerAlan Dipert <alan@dipert.org>2015-02-10 15:59:50 -0500
commit7838e3398e40af2fa82b0c71d392eb64ad69c4d8 (patch)
treeccbd0a1663fea167256570ae0b629468fe9cb7ed
parent8a9d0a8a41a176cb0e3bf6cbac70b21e9d983e2a (diff)
downloadmal-7838e3398e40af2fa82b0c71d392eb64ad69c4d8.tar.gz
mal-7838e3398e40af2fa82b0c71d392eb64ad69c4d8.zip
bash: use env in shebang
- Now works on Macs with Bash4 from homebrew
-rwxr-xr-xbash/step0_repl.sh2
-rwxr-xr-xbash/step1_read_print.sh2
-rwxr-xr-xbash/step2_eval.sh2
-rwxr-xr-xbash/step3_env.sh2
-rwxr-xr-xbash/step4_if_fn_do.sh2
-rwxr-xr-xbash/step5_tco.sh2
-rwxr-xr-xbash/step6_file.sh2
-rwxr-xr-xbash/step7_quote.sh2
-rwxr-xr-xbash/step8_macros.sh2
-rwxr-xr-xbash/step9_try.sh2
-rwxr-xr-xbash/stepA_interop.sh2
11 files changed, 11 insertions, 11 deletions
diff --git a/bash/step0_repl.sh b/bash/step0_repl.sh
index 261ecc2..8e1fff0 100755
--- a/bash/step0_repl.sh
+++ b/bash/step0_repl.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
READ () {
read -u 0 -e -p "user> " r
diff --git a/bash/step1_read_print.sh b/bash/step1_read_print.sh
index 3f6c551..881c0c3 100755
--- a/bash/step1_read_print.sh
+++ b/bash/step1_read_print.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
source $(dirname $0)/reader.sh
source $(dirname $0)/printer.sh
diff --git a/bash/step2_eval.sh b/bash/step2_eval.sh
index b59320b..54c645b 100755
--- a/bash/step2_eval.sh
+++ b/bash/step2_eval.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
source $(dirname $0)/reader.sh
source $(dirname $0)/printer.sh
diff --git a/bash/step3_env.sh b/bash/step3_env.sh
index d924b03..f00a6cd 100755
--- a/bash/step3_env.sh
+++ b/bash/step3_env.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
source $(dirname $0)/reader.sh
source $(dirname $0)/printer.sh
diff --git a/bash/step4_if_fn_do.sh b/bash/step4_if_fn_do.sh
index dd0db03..fdd8ded 100755
--- a/bash/step4_if_fn_do.sh
+++ b/bash/step4_if_fn_do.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
source $(dirname $0)/reader.sh
source $(dirname $0)/printer.sh
diff --git a/bash/step5_tco.sh b/bash/step5_tco.sh
index f282e44..cee2763 100755
--- a/bash/step5_tco.sh
+++ b/bash/step5_tco.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
source $(dirname $0)/reader.sh
source $(dirname $0)/printer.sh
diff --git a/bash/step6_file.sh b/bash/step6_file.sh
index c655853..e8c3bce 100755
--- a/bash/step6_file.sh
+++ b/bash/step6_file.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
source $(dirname $0)/reader.sh
source $(dirname $0)/printer.sh
diff --git a/bash/step7_quote.sh b/bash/step7_quote.sh
index 2f2e67e..1952c99 100755
--- a/bash/step7_quote.sh
+++ b/bash/step7_quote.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
source $(dirname $0)/reader.sh
source $(dirname $0)/printer.sh
diff --git a/bash/step8_macros.sh b/bash/step8_macros.sh
index 51d83bd..0503ca9 100755
--- a/bash/step8_macros.sh
+++ b/bash/step8_macros.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
source $(dirname $0)/reader.sh
source $(dirname $0)/printer.sh
diff --git a/bash/step9_try.sh b/bash/step9_try.sh
index 85698b4..775e0dd 100755
--- a/bash/step9_try.sh
+++ b/bash/step9_try.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
source $(dirname $0)/reader.sh
source $(dirname $0)/printer.sh
diff --git a/bash/stepA_interop.sh b/bash/stepA_interop.sh
index 9a760e4..7b43496 100755
--- a/bash/stepA_interop.sh
+++ b/bash/stepA_interop.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
source $(dirname $0)/reader.sh
source $(dirname $0)/printer.sh