aboutsummaryrefslogtreecommitdiff
path: root/spark-shell
diff options
context:
space:
mode:
Diffstat (limited to 'spark-shell')
-rwxr-xr-xspark-shell7
1 files changed, 5 insertions, 2 deletions
diff --git a/spark-shell b/spark-shell
index 5371fc540a..9608bd3f30 100755
--- a/spark-shell
+++ b/spark-shell
@@ -1,4 +1,4 @@
-#!/bin/bash --posix
+#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one or more
@@ -25,6 +25,9 @@
# -c <cores> Set the number of cores for REPL to use
#
+# Enter posix mode for bash
+set -o posix
+
FWDIR="`dirname $0`"
for o in "$@"; do
@@ -76,7 +79,7 @@ if [[ ! $? ]]; then
saved_stty=""
fi
-$FWDIR/run $OPTIONS spark.repl.Main "$@"
+$FWDIR/spark-class $OPTIONS org.apache.spark.repl.Main "$@"
# record the exit status lest it be overwritten:
# then reenable echo and propagate the code.