aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bash/Makefile2
-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
12 files changed, 12 insertions, 12 deletions
diff --git a/bash/Makefile b/bash/Makefile
index df663b5..5028788 100644
--- a/bash/Makefile
+++ b/bash/Makefile
@@ -6,7 +6,7 @@ all: mal.sh
mal.sh: $(SOURCES)
cat $+ > $@
- echo "#!/bin/bash" > $@
+ echo "#!/usr/bin/env bash" > $@
cat $+ | grep -v "^source " >> $@
chmod +x $@
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