From 179f5370e68aa3c1f035f8ac400129c3935e96f8 Mon Sep 17 00:00:00 2001
From: jyu00 <jessieyu@us.ibm.com>
Date: Fri, 5 May 2017 11:36:51 +0100
Subject: [PATCH] [SPARK-20546][DEPLOY] spark-class gets syntax error in posix
 mode

## What changes were proposed in this pull request?

Updated spark-class to turn off posix mode so the process substitution doesn't cause a syntax error.

## How was this patch tested?

Existing unit tests, manual spark-shell testing with posix mode on

Author: jyu00 <jessieyu@us.ibm.com>

Closes #17852 from jyu00/master.

(cherry picked from commit 5773ab121d5d7cbefeef17ff4ac6f8af36cc1251)
Signed-off-by: Sean Owen <sowen@cloudera.com>
---
 bin/spark-class | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/bin/spark-class b/bin/spark-class
index 77ea40cc37..65d3b96129 100755
--- a/bin/spark-class
+++ b/bin/spark-class
@@ -72,6 +72,8 @@ build_command() {
   printf "%d\0" $?
 }
 
+# Turn off posix mode since it does not allow process substitution
+set +o posix
 CMD=()
 while IFS= read -d '' -r ARG; do
   CMD+=("$ARG")
-- 
GitLab