Skip to content

Commit

Permalink
[SPARK-20546][DEPLOY] spark-class gets syntax error in posix mode
Browse files Browse the repository at this point in the history
## 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 <[email protected]>

Closes apache#17852 from jyu00/master.
  • Loading branch information
jyu00 authored and srowen committed May 5, 2017
1 parent 37cdf07 commit 5773ab1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/spark-class
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 5773ab1

Please sign in to comment.