PS: I am not sure why this stopped working, or why it worked before, respectively. ...
15 years, 8 months ago
(2009-12-01 19:02:23 UTC)
#2
PS: I am not sure why this stopped working, or why it worked before,
respectively.
- Robert
On Tuesday, December 1, 2009, <gri@golang.org> wrote:
> Reviewers: rsc,
>
> Message:
> Hello rsc,
>
> I'd like you to review the following change.
>
>
> Description:
> make test.sh work again
>
> Please review this at http://codereview.appspot.com/164059
>
> Affected files:
> M src/cmd/gofmt/test.sh
>
>
> Index: src/cmd/gofmt/test.sh
> ===================================================================
> --- a/src/cmd/gofmt/test.sh
> +++ b/src/cmd/gofmt/test.sh
> @@ -129,7 +129,7 @@
>
>
> runtests() {
> - if [ $# == 0 ]; then
> + if [ "$*" == "" ]; then
> runtest apply
> # verify the pretty-printed files can be compiled with $GC
again
> # do it in local directory only because of the prerequisites
required
>
>
>
I think the correct test is if [ $# = 0 ]; then I don't ...
15 years, 8 months ago
(2009-12-01 19:37:58 UTC)
#3
I think the correct test is
if [ $# = 0 ]; then
I don't think == should work either way
but maybe there is some GNU extension
as usual that makes == a synonym for =.
PTAL On Tuesday, December 1, 2009, Russ Cox <rsc@golang.org> wrote: > I think the correct ...
15 years, 8 months ago
(2009-12-01 20:49:13 UTC)
#4
PTAL
On Tuesday, December 1, 2009, Russ Cox <rsc@golang.org> wrote:
> I think the correct test is
>
> if [ $# = 0 ]; then
this won't work either.
>
> I don't think == should work either way
> but maybe there is some GNU extension
> as usual that makes == a synonym for =.
>
LGTM hmm. it probably has something to do with being inside a function definition. please ...
15 years, 8 months ago
(2009-12-01 21:05:27 UTC)
#5
LGTM
hmm. it probably has something to do with being
inside a function definition. please change the
"$*" to "$@", which is like "$*" but avoids
reparsing the arguments and is the standard form
in this kind of situation. (both on the line in
question and a few lines later.)
russ
Issue 164059: code review 164059: make test.sh work again
(Closed)
Created 15 years, 8 months ago by gri
Modified 15 years, 8 months ago
Reviewers:
Base URL:
Comments: 0