From 7838e3398e40af2fa82b0c71d392eb64ad69c4d8 Mon Sep 17 00:00:00 2001 From: Alan Dipert Date: Tue, 10 Feb 2015 15:59:50 -0500 Subject: bash: use env in shebang - Now works on Macs with Bash4 from homebrew --- bash/step0_repl.sh | 2 +- bash/step1_read_print.sh | 2 +- bash/step2_eval.sh | 2 +- bash/step3_env.sh | 2 +- bash/step4_if_fn_do.sh | 2 +- bash/step5_tco.sh | 2 +- bash/step6_file.sh | 2 +- bash/step7_quote.sh | 2 +- bash/step8_macros.sh | 2 +- bash/step9_try.sh | 2 +- bash/stepA_interop.sh | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) (limited to 'bash') 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 -- cgit v1.2.3 From c97af215258bcc71ecc0e01a0d78794018be4ecf Mon Sep 17 00:00:00 2001 From: Alan Dipert Date: Tue, 10 Feb 2015 18:32:19 -0500 Subject: Use env in Makefile --- bash/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bash') 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 $@ -- cgit v1.2.3