aboutsummaryrefslogtreecommitdiff
path: root/spark-shell
diff options
context:
space:
mode:
authorUbuntu <ubuntu@ip-10-196-90-205.us-west-1.compute.internal>2013-07-18 00:51:18 +0000
committerUbuntu <ubuntu@ip-10-196-90-205.us-west-1.compute.internal>2013-07-18 00:51:18 +0000
commit88a0823c58304fa1b290667d95a482105a8a5f52 (patch)
treeb5dd5a8880a49bf2492f1db5d538b37c2340ea6f /spark-shell
parentcad48edb70c58a48f66851e963f51db712ab7863 (diff)
downloadspark-88a0823c58304fa1b290667d95a482105a8a5f52.tar.gz
spark-88a0823c58304fa1b290667d95a482105a8a5f52.tar.bz2
spark-88a0823c58304fa1b290667d95a482105a8a5f52.zip
Consistently invoke bash with /usr/bin/env bash in scripts to make code more portable (JIRA Ticket SPARK-817)
Diffstat (limited to 'spark-shell')
-rwxr-xr-xspark-shell5
1 files changed, 4 insertions, 1 deletions
diff --git a/spark-shell b/spark-shell
index 5371fc540a..31a4138124 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