Github user sarutak commented on a diff in the pull request:

    https://github.com/apache/spark/pull/1825#discussion_r15976793
  
    --- 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 "$@"
             export SPARK_SUBMIT_OPTS
    -        $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[@]}
         fi
     }
     
    +function extractLoadFileOpt() {
    +  args="$@"
    +  inLoadFileFlag=0
    +
    +  for arg in $args;do
    --- End diff --
    
    O.K. I'll check it.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to