Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(760)

Issue 2068041: code review 2068041: Initial LookPath unix/windows separation. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 8 months ago by Joe Poirier
Modified:
14 years, 7 months ago
Reviewers:
CC:
brainman, rsc, vcc, rsc1, golang-dev
Visibility:
Public.

Description

Initial LookPath unix/windows separation. There were no code changes to the unix version. I believe I tested most of the path variations on windows. Note, this CL supersedes CL 1942050; those changes are rolled in to this CL. I'll close CL 1942050.

Patch Set 1 #

Patch Set 2 : code review 2068041: Initial LookPath unix/windows separation. #

Patch Set 3 : code review 2068041: Initial LookPath unix/windows separation. #

Patch Set 4 : code review 2068041: Initial LookPath unix/windows separation. #

Total comments: 17

Patch Set 5 : code review 2068041: Initial LookPath unix/windows separation. #

Total comments: 10

Patch Set 6 : code review 2068041: Initial LookPath unix/windows separation. #

Total comments: 8

Patch Set 7 : code review 2068041: Initial LookPath unix/windows separation. #

Total comments: 3

Patch Set 8 : code review 2068041: Initial LookPath unix/windows separation. #

Patch Set 9 : code review 2068041: Initial LookPath unix/windows separation. #

Total comments: 7

Patch Set 10 : code review 2068041: Initial LookPath unix/windows separation. #

Total comments: 4

Patch Set 11 : code review 2068041: Initial LookPath unix/windows separation. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -44 lines) Patch
M src/pkg/exec/Makefile View 1 chunk +17 lines, -0 lines 0 comments Download
M src/pkg/exec/exec.go View 2 chunks +0 lines, -38 lines 0 comments Download
M src/pkg/exec/exec_test.go View 1 2 3 4 5 chunks +25 lines, -6 lines 0 comments Download
A src/pkg/exec/lp_unix.go View 1 2 3 4 5 6 7 8 9 10 1 chunk +45 lines, -0 lines 0 comments Download
A src/pkg/exec/lp_windows.go View 1 2 3 4 5 6 7 8 9 10 1 chunk +66 lines, -0 lines 0 comments Download

Messages

Total messages: 41
Joe Poirier
Hello brainman, rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 8 months ago (2010-08-28 05:48:51 UTC) #1
Joe Poirier
Hello brainman, rsc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 8 months ago (2010-08-28 06:04:52 UTC) #2
Joe Poirier
Hello brainman, rsc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 8 months ago (2010-08-29 16:07:25 UTC) #3
brainman
http://codereview.appspot.com/2068041/diff/10001/11003 File src/pkg/exec/exec_test.go (right): http://codereview.appspot.com/2068041/diff/10001/11003#newcode16 src/pkg/exec/exec_test.go:16: // system folder can be called rather than form ...
14 years, 8 months ago (2010-08-30 06:41:59 UTC) #4
Joe Poirier
Jus replies to Alex's comments. http://codereview.appspot.com/2068041/diff/10001/11003 File src/pkg/exec/exec_test.go (right): http://codereview.appspot.com/2068041/diff/10001/11003#newcode17 src/pkg/exec/exec_test.go:17: // But how? On ...
14 years, 8 months ago (2010-08-30 07:48:50 UTC) #5
brainman
http://codereview.appspot.com/2068041/diff/10001/11003 File src/pkg/exec/exec_test.go (right): http://codereview.appspot.com/2068041/diff/10001/11003#newcode17 src/pkg/exec/exec_test.go:17: // But how? On 2010/08/30 07:48:50, Joe Poirier wrote: ...
14 years, 8 months ago (2010-08-30 08:02:02 UTC) #6
Joe Poirier
http://codereview.appspot.com/2068041/diff/10001/11003 File src/pkg/exec/exec_test.go (right): http://codereview.appspot.com/2068041/diff/10001/11003#newcode22 src/pkg/exec/exec_test.go:22: // something happens after Run. echo is just a ...
14 years, 8 months ago (2010-08-30 09:00:31 UTC) #7
Joe Poirier
Hello brainman, rsc, vcc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 8 months ago (2010-08-30 09:22:53 UTC) #8
rsc1
http://codereview.appspot.com/2068041/diff/19001/20005 File src/pkg/exec/lp_windows.go (right): http://codereview.appspot.com/2068041/diff/19001/20005#newcode25 src/pkg/exec/lp_windows.go:25: exts := strings.Split(os.Getenv("PATHEXT"), ";", -1) Is this guaranteed to ...
14 years, 8 months ago (2010-08-30 20:41:22 UTC) #9
Joe Poirier
http://codereview.appspot.com/2068041/diff/19001/20005 File src/pkg/exec/lp_windows.go (right): http://codereview.appspot.com/2068041/diff/19001/20005#newcode25 src/pkg/exec/lp_windows.go:25: exts := strings.Split(os.Getenv("PATHEXT"), ";", -1) On 2010/08/30 20:41:23, rsc1 ...
14 years, 8 months ago (2010-08-30 23:15:33 UTC) #10
Joe Poirier
Hello brainman, rsc, vcc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 8 months ago (2010-08-30 23:15:55 UTC) #11
rsc1
Looking pretty good. Few more small things. http://codereview.appspot.com/2068041/diff/15002/24005 File src/pkg/exec/lp_unix.go (right): http://codereview.appspot.com/2068041/diff/15002/24005#newcode26 src/pkg/exec/lp_unix.go:26: // TODO(rsc): ...
14 years, 8 months ago (2010-08-30 23:30:42 UTC) #12
Joe Poirier
http://codereview.appspot.com/2068041/diff/15002/24005 File src/pkg/exec/lp_unix.go (right): http://codereview.appspot.com/2068041/diff/15002/24005#newcode26 src/pkg/exec/lp_unix.go:26: // TODO(rsc): Does LookPath belong in os instead? On ...
14 years, 8 months ago (2010-08-31 00:17:49 UTC) #13
Joe Poirier
Hello brainman, rsc, vcc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 8 months ago (2010-08-31 00:18:05 UTC) #14
rsc1
Almost there. Have to avoid slicing e[0:1] when e is empty, and might as well ...
14 years, 8 months ago (2010-08-31 00:33:40 UTC) #15
Joe Poirier
> Almost there. :-] > Have to avoid slicing e[0:1] when e is empty, Yup ...
14 years, 8 months ago (2010-08-31 00:57:46 UTC) #16
rsc
>> and might as well check the byte instead of >> a string compare. > ...
14 years, 8 months ago (2010-08-31 01:06:09 UTC) #17
Joe Poirier
http://codereview.appspot.com/2068041/diff/9002/16006 File src/pkg/exec/lp_windows.go (right): http://codereview.appspot.com/2068041/diff/9002/16006#newcode22 src/pkg/exec/lp_windows.go:22: func canExec(file string, exts []string) (string, bool) { Moving ...
14 years, 8 months ago (2010-08-31 01:30:10 UTC) #18
Joe Poirier
Hello brainman, rsc, vcc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 8 months ago (2010-08-31 01:31:57 UTC) #19
Joe Poirier
On Mon, Aug 30, 2010 at 8:30 PM, <jdpoirier@gmail.com> wrote: > > http://codereview.appspot.com/2068041/diff/9002/16006 > File ...
14 years, 8 months ago (2010-08-31 02:14:35 UTC) #20
Joe Poirier
A user can delete the PATH and PATHEXT variables from the environment properties, so the ...
14 years, 8 months ago (2010-08-31 04:03:25 UTC) #21
Joe Poirier
Hello brainman, rsc, vcc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 8 months ago (2010-08-31 04:04:19 UTC) #22
brainman
Feel free to ignore my suggestions. http://codereview.appspot.com/2068041/diff/39001/40005 File src/pkg/exec/lp_windows.go (right): http://codereview.appspot.com/2068041/diff/39001/40005#newcode23 src/pkg/exec/lp_windows.go:23: if len(exts) < ...
14 years, 8 months ago (2010-08-31 07:29:17 UTC) #23
Joe Poirier
It's nice being able to put the assignment and conditional check on the same line ...
14 years, 8 months ago (2010-08-31 07:53:59 UTC) #24
brainman
> It's nice being able to put the assignment and conditional check on the > ...
14 years, 8 months ago (2010-08-31 07:59:15 UTC) #25
Joe Poirier
On Tue, Aug 31, 2010 at 2:59 AM, <alex.brainman@gmail.com> wrote: >> It's nice being able ...
14 years, 8 months ago (2010-08-31 08:27:57 UTC) #26
rsc
> I know len() returns a type int so for this code I don't really ...
14 years, 8 months ago (2010-08-31 11:44:52 UTC) #27
Joe Poirier
> > If you were checking the second byte of the string you'd use > ...
14 years, 8 months ago (2010-08-31 13:57:19 UTC) #28
rsc
Joe - still planning to finish this? Russ
14 years, 8 months ago (2010-09-09 17:59:51 UTC) #29
Joe Poirier
On Thu, Sep 9, 2010 at 12:59 PM, Russ Cox <rsc@golang.org> wrote: > Joe - ...
14 years, 8 months ago (2010-09-09 20:43:23 UTC) #30
Joe Poirier
I'll upload the code in a bit. BTW, the exec package tests still fail/crash. I ...
14 years, 8 months ago (2010-09-10 07:17:58 UTC) #31
Joe Poirier
Hello brainman, rsc, vcc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 8 months ago (2010-09-10 07:30:45 UTC) #32
vcc
2010/9/10 <jdpoirier@gmail.com> > > BTW, the exec package tests still fail/crash. I guess > it ...
14 years, 8 months ago (2010-09-10 17:11:04 UTC) #33
Joe Poirier
PTAL Although I added the mingw bin folder to the system path for gcc, the ...
14 years, 8 months ago (2010-09-11 04:45:37 UTC) #34
rsc1
looks good except for the two comments http://codereview.appspot.com/2068041/diff/45001/src/pkg/exec/lp_unix.go File src/pkg/exec/lp_unix.go (right): http://codereview.appspot.com/2068041/diff/45001/src/pkg/exec/lp_unix.go#newcode5 src/pkg/exec/lp_unix.go:5: // Unix ...
14 years, 8 months ago (2010-09-11 04:50:36 UTC) #35
Joe Poirier
http://codereview.appspot.com/2068041/diff/45001/src/pkg/exec/lp_unix.go File src/pkg/exec/lp_unix.go (right): http://codereview.appspot.com/2068041/diff/45001/src/pkg/exec/lp_unix.go#newcode5 src/pkg/exec/lp_unix.go:5: // Unix environment variables. On 2010/09/11 04:50:36, rsc1 wrote: ...
14 years, 8 months ago (2010-09-11 05:19:51 UTC) #36
Joe Poirier
Hello brainman, rsc, vcc, rsc1 (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 8 months ago (2010-09-11 05:20:04 UTC) #37
vcc
LGTM On 2010/09/11 05:20:04, Joe Poirier wrote: > Hello brainman, rsc, vcc, rsc1 (cc: mailto:golang-dev@googlegroups.com), ...
14 years, 8 months ago (2010-09-11 05:56:18 UTC) #38
brainman
LGTM
14 years, 7 months ago (2010-09-12 02:32:36 UTC) #39
rsc1
LGTM
14 years, 7 months ago (2010-09-12 03:21:52 UTC) #40
brainman
14 years, 7 months ago (2010-09-12 07:38:40 UTC) #41
*** Submitted as http://code.google.com/p/go/source/detail?r=dd7119fe8490 ***

exec.LookPath() unix/windows separation

R=brainman, rsc, vcc, rsc1
CC=golang-dev
http://codereview.appspot.com/2068041

Committer: Alex Brainman <alex.brainman@gmail.com>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b