Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion impls/ada/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec $(dirname $0)/${STEP:-stepA_mal} "${@}"
2 changes: 1 addition & 1 deletion impls/awk/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec awk -O -f $(dirname $0)/${STEP:-stepA_mal}.awk "${@}"
2 changes: 1 addition & 1 deletion impls/bash/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec bash $(dirname $0)/${STEP:-stepA_mal}.sh "${@}"
2 changes: 1 addition & 1 deletion impls/basic/run
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
cd $(dirname $0)
(echo "(def! -*ARGS*- (list $(for a in "${@}"; do echo -n " \"${a}\""; done)))") > .args.mal
case ${basic_MODE:-cbm} in
Expand Down
2 changes: 1 addition & 1 deletion impls/bbc-basic/run
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#! /bin/bash
#!/usr/bin/env bash
exec "${BRANDY:-sbrandy}" -size 1024k \
-path ../bbc-basic -quit $(dirname $0)/${STEP:-stepA_mal}.bas "${@}"
2 changes: 1 addition & 1 deletion impls/c/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec $(dirname $0)/${STEP:-stepA_mal} "${@}"
2 changes: 1 addition & 1 deletion impls/chuck/run
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
regex_chugin=${REGEX_CHUGIN:-/usr/local/lib/chuck/1.5.2.5/RegEx.chug}
if [[ ! -f "$regex_chugin" ]]; then
echo "Set \$REGEX_CHUGIN to the absolute path of RegEx.chug"; exit 1
Expand Down
2 changes: 1 addition & 1 deletion impls/clojure/run
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
export PATH=$PATH:$(dirname $0)/node_modules/.bin
STEP=${STEP:-stepA_mal}
if [ "${clojure_MODE}" = "cljs" ]; then
Expand Down
2 changes: 1 addition & 1 deletion impls/coffee/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec coffee $(dirname $0)/${STEP:-stepA_mal}.coffee "${@}"
2 changes: 1 addition & 1 deletion impls/common-lisp/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec $(dirname $0)/${STEP:-stepA_mal} "${@}"
2 changes: 1 addition & 1 deletion impls/cpp/docker.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

IMAGE_NAME=mal-cpp
CONTAINER_NAME=mal-cpp-running
Expand Down
2 changes: 1 addition & 1 deletion impls/cpp/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec $(dirname $0)/${STEP:-stepA_mal} "${@}"
2 changes: 1 addition & 1 deletion impls/cs/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec mono $(dirname $0)/${STEP:-stepA_mal}.exe ${RAW:+--raw} "${@}"
2 changes: 1 addition & 1 deletion impls/d/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec $(dirname $0)/${STEP:-stepA_mal} "${@}"
2 changes: 1 addition & 1 deletion impls/dart/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec dart --checked $(dirname $0)/${STEP:-stepA_mal}.dart "${@}"
2 changes: 1 addition & 1 deletion impls/elixir/run
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash
cd $(dirname $0)
exec mix ${STEP:-stepA_mal} "${@}"
2 changes: 1 addition & 1 deletion impls/erlang/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec $(dirname $0)/${STEP:-stepA_mal} "${@}"
2 changes: 1 addition & 1 deletion impls/es6/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec node $(dirname $0)/${STEP:-stepA_mal}.mjs "${@}"
2 changes: 1 addition & 1 deletion impls/factor/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec factor $(dirname $0)/${STEP:-stepA_mal}/${STEP:-stepA_mal}.factor "${@}"
2 changes: 1 addition & 1 deletion impls/fantom/run
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
export FAN_ENV=util::PathEnv
export FAN_ENV_PATH="$(dirname $0)"
exec fan ${STEP:-stepA_mal} "$@"
2 changes: 1 addition & 1 deletion impls/fennel/run
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash

exec fennel $(dirname $0)/${STEP:-stepA_mal}.fnl "${@}"
2 changes: 1 addition & 1 deletion impls/forth/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec gforth $(dirname $0)/${STEP:-stepA_mal}.fs "${@}"
2 changes: 1 addition & 1 deletion impls/fsharp/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec mono $(dirname $0)/${STEP:-stepA_mal}.exe ${RAW:+--raw} "${@}"
2 changes: 1 addition & 1 deletion impls/gnu-smalltalk/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec gst -f $(dirname $0)/${STEP:-stepA_mal}.st "${@}"
2 changes: 1 addition & 1 deletion impls/go/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec $(dirname $0)/${STEP:-stepA_mal} "${@}"
2 changes: 1 addition & 1 deletion impls/groovy/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec groovy $(dirname $0)/${STEP:-stepA_mal}.groovy "${@}"
2 changes: 1 addition & 1 deletion impls/guile/run
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash
# XDG_CACHE_HOME is where guile stores the compiled files
XDG_CACHE_HOME=.cache/ exec guile -L $(dirname $0) $(dirname $0)/${STEP:-stepA_mal}.scm "${@}"
2 changes: 1 addition & 1 deletion impls/hare/run
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash

exec $(dirname $0)/${STEP:-stepA_mal} "${@}"
2 changes: 1 addition & 1 deletion impls/haxe/run
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
case ${haxe_MODE:-neko} in
neko) exec neko $(dirname $0)/${STEP:-stepA_mal}.n "${@}" ;;
python) exec python3 $(dirname $0)/${STEP:-stepA_mal}.py "${@}" ;;
Expand Down
2 changes: 1 addition & 1 deletion impls/hy/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec $(dirname $0)/${STEP:-stepA_mal}.hy "${@}"
2 changes: 1 addition & 1 deletion impls/io/run
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash

io $(dirname $0)/${STEP:-stepA_mal}.io "$@"
2 changes: 1 addition & 1 deletion impls/java-truffle/run
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

CP=$(gradle -q --console plain printClasspath)

Expand Down
2 changes: 1 addition & 1 deletion impls/java/run
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
args=""
if [ "$#" -gt 0 ]; then
args="-Dexec.args='$1'"
Expand Down
2 changes: 1 addition & 1 deletion impls/js/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec node $(dirname $0)/${STEP:-stepA_mal}.js "${@}"
2 changes: 1 addition & 1 deletion impls/julia/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec julia $(dirname $0)/${STEP:-stepA_mal}.jl "${@}"
2 changes: 1 addition & 1 deletion impls/kotlin/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec java -jar $(dirname $0)/${STEP:-stepA_mal}.jar "${@}"
2 changes: 1 addition & 1 deletion impls/livescript/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec node $(dirname $0)/${STEP:-stepA_mal}.js "${@}"
2 changes: 1 addition & 1 deletion impls/logo/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec ucblogo $(dirname $0)/${STEP:-stepA_mal}.lg - "${@}"
2 changes: 1 addition & 1 deletion impls/lua/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec lua $(dirname $0)/${STEP:-stepA_mal}.lua "${@}"
2 changes: 1 addition & 1 deletion impls/make/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec make --no-print-directory -f $(dirname $0)/${STEP:-stepA_mal}.mk "${@}"
2 changes: 1 addition & 1 deletion impls/make/step0_repl.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ _TOP_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
include $(_TOP_DIR)readline.mk
include $(_TOP_DIR)util.mk

SHELL := /bin/bash
SHELL := /usr/bin/env bash

define READ
$1
Expand Down
2 changes: 1 addition & 1 deletion impls/make/step1_read_print.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ include $(_TOP_DIR)util.mk
include $(_TOP_DIR)reader.mk
include $(_TOP_DIR)printer.mk

SHELL := /bin/bash
SHELL := /usr/bin/env bash

# READ: read and parse input
define READ
Expand Down
2 changes: 1 addition & 1 deletion impls/make/step2_eval.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ include $(_TOP_DIR)reader.mk
include $(_TOP_DIR)printer.mk
include $(_TOP_DIR)core.mk

SHELL := /bin/bash
SHELL := /usr/bin/env bash
EVAL_DEBUG ?=

# READ: read and parse input
Expand Down
2 changes: 1 addition & 1 deletion impls/make/step3_env.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ include $(_TOP_DIR)printer.mk
include $(_TOP_DIR)env.mk
include $(_TOP_DIR)core.mk

SHELL := /bin/bash
SHELL := /usr/bin/env bash

# READ: read and parse input
define READ
Expand Down
2 changes: 1 addition & 1 deletion impls/make/step4_if_fn_do.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ include $(_TOP_DIR)printer.mk
include $(_TOP_DIR)env.mk
include $(_TOP_DIR)core.mk

SHELL := /bin/bash
SHELL := /usr/bin/env bash

# READ: read and parse input
define READ
Expand Down
2 changes: 1 addition & 1 deletion impls/make/step6_file.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ include $(_TOP_DIR)printer.mk
include $(_TOP_DIR)env.mk
include $(_TOP_DIR)core.mk

SHELL := /bin/bash
SHELL := /usr/bin/env bash

# READ: read and parse input
define READ
Expand Down
2 changes: 1 addition & 1 deletion impls/make/step7_quote.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ include $(_TOP_DIR)printer.mk
include $(_TOP_DIR)env.mk
include $(_TOP_DIR)core.mk

SHELL := /bin/bash
SHELL := /usr/bin/env bash

# READ: read and parse input
define READ
Expand Down
2 changes: 1 addition & 1 deletion impls/make/step8_macros.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ include $(_TOP_DIR)printer.mk
include $(_TOP_DIR)env.mk
include $(_TOP_DIR)core.mk

SHELL := /bin/bash
SHELL := /usr/bin/env bash

# READ: read and parse input
define READ
Expand Down
2 changes: 1 addition & 1 deletion impls/make/step9_try.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ include $(_TOP_DIR)printer.mk
include $(_TOP_DIR)env.mk
include $(_TOP_DIR)core.mk

SHELL := /bin/bash
SHELL := /usr/bin/env bash

# READ: read and parse input
define READ
Expand Down
2 changes: 1 addition & 1 deletion impls/make/stepA_mal.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ include $(_TOP_DIR)printer.mk
include $(_TOP_DIR)env.mk
include $(_TOP_DIR)core.mk

SHELL := /bin/bash
SHELL := /usr/bin/env bash

# READ: read and parse input
define READ
Expand Down
2 changes: 1 addition & 1 deletion impls/mal/run
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
MAL_FILE=../mal/${STEP:-stepA_mal}.mal
export STEP=stepA_mal # force MAL_IMPL to use stepA
case ${MAL_IMPL} in
Expand Down
2 changes: 1 addition & 1 deletion impls/miniMAL/run
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash
cd $(dirname $0)
exec miniMAL ./${STEP:-stepA_mal}.json "${@}"
2 changes: 1 addition & 1 deletion impls/nasm/run
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash
exec $(dirname $0)/${STEP:-stepA_mal} "${@}"

2 changes: 1 addition & 1 deletion impls/objc/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec $(dirname $0)/${STEP:-stepA_mal} "${@}"
2 changes: 1 addition & 1 deletion impls/objpascal/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec $(dirname $0)/${STEP:-stepA_mal} "${@}"
2 changes: 1 addition & 1 deletion impls/perl/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec perl $(dirname $0)/${STEP:-stepA_mal}.pl "${@}"
2 changes: 1 addition & 1 deletion impls/perl6/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec perl6 $(dirname $0)/${STEP:-stepA_mal}.pl "${@}"
2 changes: 1 addition & 1 deletion impls/php/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec php $(dirname $0)/${STEP:-stepA_mal}.php "${@}"
2 changes: 1 addition & 1 deletion impls/picolisp/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec pil $(dirname $0)/${STEP:-stepA_mal}.l - "${@}"
2 changes: 1 addition & 1 deletion impls/pike/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec pike $(dirname $0)/${STEP:-stepA_mal}.pike "${@}"
2 changes: 1 addition & 1 deletion impls/plpgsql/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

POSTGRES_SUDO_USER=${POSTGRES_SUDO_USER:-postgres}

Expand Down
2 changes: 1 addition & 1 deletion impls/plpgsql/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec $(dirname $0)/wrap.sh $(dirname $0)/${STEP:-stepA_mal}.sql "${@}"
2 changes: 1 addition & 1 deletion impls/plpgsql/wrap.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

RL_HISTORY_FILE=${HOME}/.mal-history
SKIP_INIT="${SKIP_INIT:-}"
Expand Down
2 changes: 1 addition & 1 deletion impls/plsql/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

case ${1} in
make*)
Expand Down
2 changes: 1 addition & 1 deletion impls/plsql/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec $(dirname $0)/wrap.sh $(dirname $0)/${STEP:-stepA_mal}.sql "${@}"
2 changes: 1 addition & 1 deletion impls/plsql/wrap.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

RL_HISTORY_FILE=${HOME}/.mal-history
SKIP_INIT="${SKIP_INIT:-}"
Expand Down
2 changes: 1 addition & 1 deletion impls/prolog/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec swipl $(dirname $0)/${STEP:-stepA_mal}.pl "${@}"
2 changes: 1 addition & 1 deletion impls/ps/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec gs -q -I$(dirname $0) -dNOSAFER -dNODISPLAY -- $(dirname $0)/${STEP:-stepA_mal}.ps "${@}"
2 changes: 1 addition & 1 deletion impls/purs/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec node $(dirname $0)/${STEP:-stepA_mal}.js "${@}"
2 changes: 1 addition & 1 deletion impls/r/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec Rscript $(dirname $0)/${STEP:-stepA_mal}.r "${@}"
2 changes: 1 addition & 1 deletion impls/racket/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec racket $(dirname $0)/${STEP:-stepA_mal}.rkt "${@}"
2 changes: 1 addition & 1 deletion impls/rpython/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec $(dirname $0)/${STEP:-stepA_mal} "${@}"
2 changes: 1 addition & 1 deletion impls/ruby.2/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec ruby $(dirname $0)/${STEP:-stepA_mal}.rb "${@}"
2 changes: 1 addition & 1 deletion impls/ruby/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec ruby $(dirname $0)/${STEP:-stepA_mal}.rb "${@}"
2 changes: 1 addition & 1 deletion impls/scala/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec java -classpath "$(dirname $0)/target/scala-2.11/mal.jar" "${STEP:-stepA_mal}" "$@"
2 changes: 1 addition & 1 deletion impls/scheme/run
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
basedir=$(dirname $0)
step=${STEP:-stepA_mal}

Expand Down
2 changes: 1 addition & 1 deletion impls/skew/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec node $(dirname $0)/${STEP:-stepA_mal}.js "${@}"
2 changes: 1 addition & 1 deletion impls/sml/run
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
#!/usr/bin/env bash
exec $(dirname $0)/${STEP:-stepA_mal} "${@}"
Loading
Loading