You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by liu-zhaokun <gi...@git.apache.org> on 2017/07/11 03:26:30 UTC

[GitHub] spark pull request #18596: [SPARK-21371] dev/make-distribution.sh scripts us...

GitHub user liu-zhaokun opened a pull request:

    https://github.com/apache/spark/pull/18596

    [SPARK-21371] dev/make-distribution.sh scripts use of $@ without ""

    [https://issues.apache.org/jira/browse/SPARK-21371](https://issues.apache.org/jira/browse/SPARK-21371)
    dev/make-distribution.sh scripts use of $@ without " ",this will affect the length of args.For example, if there is a space in the parameter,it will be identified as two parameter.Mean while,other modules in spark have used $@ with " ",it's right,I think dev/make-distribution.sh should be consistent with others,because it's safety.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/liu-zhaokun/spark new711

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/18596.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #18596
    
----
commit 5316be09052316707172d5e730b5e2d3cbdb2527
Author: liuzhaokun <li...@zte.com.cn>
Date:   2017-07-11T03:24:51Z

    [SPARK-21371] dev/make-distribution.sh scripts use of  without

----


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

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


[GitHub] spark issue #18596: [SPARK-21371] dev/make-distribution.sh scripts use of $@...

Posted by liu-zhaokun <gi...@git.apache.org>.
Github user liu-zhaokun commented on the issue:

    https://github.com/apache/spark/pull/18596
  
    @srowen 
    Sorry,I don't understand,Could you explain 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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark issue #18596: [SPARK-21371] dev/make-distribution.sh scripts use of $@...

Posted by liu-zhaokun <gi...@git.apache.org>.
Github user liu-zhaokun commented on the issue:

    https://github.com/apache/spark/pull/18596
  
    @srowen 
    I will modify it.What do you think of other changes?


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

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


[GitHub] spark pull request #18596: [SPARK-21371] dev/make-distribution.sh scripts us...

Posted by liu-zhaokun <gi...@git.apache.org>.
Github user liu-zhaokun commented on a diff in the pull request:

    https://github.com/apache/spark/pull/18596#discussion_r126669564
  
    --- Diff: dev/make-distribution.sh ---
    @@ -163,7 +163,7 @@ echo -e "\$ ${BUILD_COMMAND[@]}\n"
     rm -rf "$DISTDIR"
     mkdir -p "$DISTDIR/jars"
     echo "Spark $VERSION$GITREVSTRING built for Hadoop $SPARK_HADOOP_VERSION" > "$DISTDIR/RELEASE"
    -echo "Build flags: $@" >> "$DISTDIR/RELEASE"
    +echo "Build flags: "$@"" >> "$DISTDIR/RELEASE"
    --- End diff --
    
    @srowen  @jiangxb1987 
    I think it's more standardized to use $@ with quotes,this is a blessing and no harm,and we should use $@ with quotes where it will be used.


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

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


[GitHub] spark pull request #18596: [SPARK-21371] dev/make-distribution.sh scripts us...

Posted by jiangxb1987 <gi...@git.apache.org>.
Github user jiangxb1987 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/18596#discussion_r126691780
  
    --- Diff: dev/make-distribution.sh ---
    @@ -163,7 +163,7 @@ echo -e "\$ ${BUILD_COMMAND[@]}\n"
     rm -rf "$DISTDIR"
     mkdir -p "$DISTDIR/jars"
     echo "Spark $VERSION$GITREVSTRING built for Hadoop $SPARK_HADOOP_VERSION" > "$DISTDIR/RELEASE"
    -echo "Build flags: $@" >> "$DISTDIR/RELEASE"
    +echo "Build flags: "$@"" >> "$DISTDIR/RELEASE"
    --- End diff --
    
    In that case, you should use `"Build flags: "$@`, but I still prefer the original one.


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

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


[GitHub] spark pull request #18596: [SPARK-21371] dev/make-distribution.sh scripts us...

Posted by liu-zhaokun <gi...@git.apache.org>.
Github user liu-zhaokun closed the pull request at:

    https://github.com/apache/spark/pull/18596


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

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


[GitHub] spark issue #18596: [SPARK-21371] dev/make-distribution.sh scripts use of $@...

Posted by liu-zhaokun <gi...@git.apache.org>.
Github user liu-zhaokun commented on the issue:

    https://github.com/apache/spark/pull/18596
  
    @jiangxb1987
    Thanks for your reply.I can make some change according to your opinion.There are also others changes In this PR,do you support me?


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

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


[GitHub] spark issue #18596: [SPARK-21371] dev/make-distribution.sh scripts use of $@...

Posted by liu-zhaokun <gi...@git.apache.org>.
Github user liu-zhaokun commented on the issue:

    https://github.com/apache/spark/pull/18596
  
    OK,I will close this PR.


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

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


[GitHub] spark pull request #18596: [SPARK-21371] dev/make-distribution.sh scripts us...

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/18596#discussion_r126724142
  
    --- Diff: dev/make-distribution.sh ---
    @@ -163,7 +163,7 @@ echo -e "\$ ${BUILD_COMMAND[@]}\n"
     rm -rf "$DISTDIR"
     mkdir -p "$DISTDIR/jars"
     echo "Spark $VERSION$GITREVSTRING built for Hadoop $SPARK_HADOOP_VERSION" > "$DISTDIR/RELEASE"
    -echo "Build flags: $@" >> "$DISTDIR/RELEASE"
    +echo "Build flags: "$@"" >> "$DISTDIR/RELEASE"
    --- End diff --
    
    @liu-zhaokun you're actually unquoting this argument as far as I can tell. It was fine before. 


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

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


[GitHub] spark issue #18596: [SPARK-21371] dev/make-distribution.sh scripts use of $@...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/18596
  
    Can one of the admins verify this patch?


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

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


[GitHub] spark issue #18596: [SPARK-21371] dev/make-distribution.sh scripts use of $@...

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on the issue:

    https://github.com/apache/spark/pull/18596
  
    `"Build flags: "$@""`
    This has two quoted strings. The first is `Build flags: ` and the second is empty. In between are the arguments you say you want to quote. They were already in quotes. This actually works either way -- remember, it's an `echo`. But the change is wrong.


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

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


[GitHub] spark pull request #18596: [SPARK-21371] dev/make-distribution.sh scripts us...

Posted by jiangxb1987 <gi...@git.apache.org>.
Github user jiangxb1987 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/18596#discussion_r126636441
  
    --- Diff: dev/make-distribution.sh ---
    @@ -163,7 +163,7 @@ echo -e "\$ ${BUILD_COMMAND[@]}\n"
     rm -rf "$DISTDIR"
     mkdir -p "$DISTDIR/jars"
     echo "Spark $VERSION$GITREVSTRING built for Hadoop $SPARK_HADOOP_VERSION" > "$DISTDIR/RELEASE"
    -echo "Build flags: $@" >> "$DISTDIR/RELEASE"
    +echo "Build flags: "$@"" >> "$DISTDIR/RELEASE"
    --- End diff --
    
    I think this is okay since it's just printing out some message, in fact I think the original command is also valid and looks better.


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

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


[GitHub] spark issue #18596: [SPARK-21371] dev/make-distribution.sh scripts use of $@...

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on the issue:

    https://github.com/apache/spark/pull/18596
  
    @liu-zhaokun no I was saying that it's probably still fine to merge this


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

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


[GitHub] spark pull request #18596: [SPARK-21371] dev/make-distribution.sh scripts us...

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/18596#discussion_r126623139
  
    --- Diff: dev/make-distribution.sh ---
    @@ -163,7 +163,7 @@ echo -e "\$ ${BUILD_COMMAND[@]}\n"
     rm -rf "$DISTDIR"
     mkdir -p "$DISTDIR/jars"
     echo "Spark $VERSION$GITREVSTRING built for Hadoop $SPARK_HADOOP_VERSION" > "$DISTDIR/RELEASE"
    -echo "Build flags: $@" >> "$DISTDIR/RELEASE"
    +echo "Build flags: "$@"" >> "$DISTDIR/RELEASE"
    --- End diff --
    
    I'm not sure this does what you think -- doesn't this actually leave `$@` outside quotes?
    The rest looks OK but I don't know when the script would have an argument with spaces? Look how it's used.


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

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


[GitHub] spark issue #18596: [SPARK-21371] dev/make-distribution.sh scripts use of $@...

Posted by liu-zhaokun <gi...@git.apache.org>.
Github user liu-zhaokun commented on the issue:

    https://github.com/apache/spark/pull/18596
  
    @srowen  @jiangxb1987 
    Hello,I have modified the PR according to your opinion.Could you help me review it again.


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

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