Skip to content

Commit

Permalink
remove function keyword from scripts; add note to eval script
Browse files Browse the repository at this point in the history
amended to pass DCO

Signed-off-by: Michael Greenberg <michael.greenberg@stevens.edu>
  • Loading branch information
mgree committed Jul 1, 2022
1 parent e8e097c commit e5a27bb
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion compiler/dspash/worker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ source "$PASH_TOP/compiler/pash_init_setup.sh" "$@" --distributed_exec

export PASH_TMP_PREFIX="$(mktemp -d /tmp/pash_XXXXXXX)/"

function cleanup() {
cleanup() {
kill "$FILEREADER_PID" "$DISCOVERY_PID"
wait "$FILEREADER_PID" "$DISCOVERY_PID" 2>/dev/null
rm -rf "$PASH_TMP_PREFIX"
Expand Down
2 changes: 1 addition & 1 deletion compiler/pash_runtime_quick_abort.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ log()

# Taken from: https://stackoverflow.com/a/20473191
# list_include_item "10 11 12" "2"
function list_include_item {
list_include_item {
local list="$1"
local item="$2"
if [[ $list =~ (^|[[:space:]])"$item"($|[[:space:]]) ]] ; then
Expand Down
2 changes: 1 addition & 1 deletion evaluation/osdi22-eval/run_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ run_bench() {
done
}

function run_all_benchmarks() {
run_all_benchmarks() {
# generate output folder for each run
export RES_FOLDER=$1
# clean previous runs
Expand Down
1 change: 1 addition & 0 deletions evaluation/other/circular/sq.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Clever trick that uses the /dev/fd/xx pseudo-file system
# https://stackoverflow.com/questions/40244/how-to-make-a-pipe-loop-in-bash

# MMG 2022-06-30 the `function` kw is a bash-ism; leaving it in to not disrupt what gets optimized in previous evaluations
function calc() {
# calculate sum of squares of numbers 0,..,10

Expand Down
2 changes: 1 addition & 1 deletion pa.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export PYTHONPATH=${PASH_TOP}/python_pkgs/
trap kill_all SIGTERM SIGINT

## kill all the pending processes that are spawned by this shell
function kill_all() {
kill_all() {
# kill all my subprocesses only
kill -s SIGKILL 0
# kill pash_daemon
Expand Down

0 comments on commit e5a27bb

Please sign in to comment.