Github user liancheng commented on a diff in the pull request:
https://github.com/apache/spark/pull/1825#discussion_r15975896
--- Diff: bin/spark-shell ---
@@ -46,14 +48,38 @@ function main(){
# (see https://github.com/sbt/sbt/issues/562).
stty -icanon min 1 -echo > /dev/null 2>&1
export SPARK_SUBMIT_OPTS="$SPARK_SUBMIT_OPTS -Djline.terminal=unix"
- $FWDIR/bin/spark-submit --class org.apache.spark.repl.Main
spark-shell "$@"
+ $FWDIR/bin/spark-submit --class org.apache.spark.repl.Main
${SPARK_SUBMIT_ARGS[@]} spark-shell ${SPARK_SHELL_ARGS[@]}
stty icanon echo > /dev/null 2>&1
else
+ extractLoadFileOpt "$@"
--- End diff --
We should move this call before the `if` statement to cover the Cygwin
branch. And please use 4-space indentation here :)
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]