Kousuke Saruta created SPARK-4076:
-------------------------------------

             Summary: Parameter expansion in spark-config is wrong
                 Key: SPARK-4076
                 URL: https://issues.apache.org/jira/browse/SPARK-4076
             Project: Spark
          Issue Type: Bug
          Components: Spark Core
    Affects Versions: 1.2.0
            Reporter: Kousuke Saruta
            Priority: Minor


In sbin/spark-config.sh, parameter expansion is used to extract source root as 
follows.

{code}
this="${BASH_SOURCE-$0}"
{code}

I think, the parameter expansion should be ":-" instead of "-".
If we use "-" and BASH_SOURCE="", (empty character is set, not unset),
"" (empty character) is set to $this.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to