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

Issue 313210043: i#2097: In drfront_searchenv on Unix, do not search current directory.

Can't Edit
Can't Publish+Mail
Start Review
Created:
7 years, 4 months ago by Edmund.Grimley.Evans
Modified:
7 years, 4 months ago
Reviewers:
bruening
CC:
dynamorio-devs_googlegroups.com
Visibility:
Public.

Description

Commit log for first patchset: --------------- i#2097: In drfront_searchenv on Unix, do not search current directory. Also in drfront_searchenv on Unix, handle empty paths, which refer to the current directory. Likewise, modify drfront_get_app_full_path and _tmain in drdeploy.c to behave in the Unix manner on Unix. Fixes #2097 ---------------

Patch Set 1 #

Total comments: 14
Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -33 lines) Patch
M libutil/dr_frontend.h View 1 chunk +1 line, -1 line 0 comments Download
M libutil/dr_frontend_unix.c View 2 chunks +6 lines, -32 lines 3 comments Download
M tools/drdeploy.c View 2 chunks +17 lines, -0 lines 11 comments Download

Messages

Total messages: 15
Edmund.Grimley.Evans
7 years, 4 months ago (2016-12-09 14:41:13 UTC) #1
bruening
> Also in drfront_searchenv on Unix, handle empty paths, which refer > to the current ...
7 years, 4 months ago (2016-12-10 23:13:36 UTC) #2
Edmund.Grimley.Evans
On 2016/12/10 23:13:36, bruening wrote: > > Also in drfront_searchenv on Unix, handle empty paths, ...
7 years, 4 months ago (2016-12-11 08:12:51 UTC) #3
bruening
On 2016/12/11 08:12:51, Edmund.Grimley.Evans wrote: > > tools/drdeploy.c:1502: error("cannot find executable"); > > This is ...
7 years, 4 months ago (2016-12-11 22:02:32 UTC) #4
bruening
On 2016/12/11 08:12:51, Edmund.Grimley.Evans wrote: > On 2016/12/10 23:13:36, bruening wrote: > > > Also ...
7 years, 4 months ago (2016-12-12 03:57:10 UTC) #5
bruening
On 2016/12/11 22:02:32, bruening wrote: > On 2016/12/11 08:12:51, Edmund.Grimley.Evans wrote: > > > tools/drdeploy.c:1502: ...
7 years, 4 months ago (2016-12-12 03:58:17 UTC) #6
Edmund.Grimley.Evans
On 2016/12/12 03:58:17, bruening wrote: > Somewhere there is an existing error message about a ...
7 years, 4 months ago (2016-12-12 12:57:15 UTC) #7
bruening
On 2016/12/12 12:57:15, Edmund.Grimley.Evans wrote: > On 2016/12/12 03:58:17, bruening wrote: > > Somewhere there ...
7 years, 4 months ago (2016-12-12 14:31:29 UTC) #8
Edmund.Grimley.Evans
On 2016/12/12 14:31:29, bruening wrote: > On 2016/12/12 12:57:15, Edmund.Grimley.Evans wrote: > > On 2016/12/12 ...
7 years, 4 months ago (2016-12-12 14:50:28 UTC) #9
Edmund.Grimley.Evans
On 2016/12/12 14:50:28, Edmund.Grimley.Evans wrote: > On 2016/12/12 14:31:29, bruening wrote: > > On 2016/12/12 ...
7 years, 4 months ago (2016-12-12 14:53:03 UTC) #10
bruening
On 2016/12/12 14:53:03, Edmund.Grimley.Evans wrote: > On 2016/12/12 14:50:28, Edmund.Grimley.Evans wrote: > > On 2016/12/12 ...
7 years, 4 months ago (2016-12-12 15:31:41 UTC) #11
Edmund.Grimley.Evans
On 2016/12/12 15:31:41, bruening wrote: > On 2016/12/12 14:53:03, Edmund.Grimley.Evans wrote: > > On 2016/12/12 ...
7 years, 4 months ago (2016-12-13 10:51:27 UTC) #12
bruening
On Tue, Dec 13, 2016 at 5:51 AM, <Edmund.Grimley.Evans@gmail.com> wrote: > What sort of error ...
7 years, 4 months ago (2016-12-13 16:49:00 UTC) #13
bruening
> > * Windows uses '\' instead of '/', and PATH is separated with ';' ...
7 years, 4 months ago (2016-12-13 17:02:23 UTC) #14
edmund.grimley.evans_gmail.com
7 years, 4 months ago (2016-12-13 17:04:09 UTC) #15
On Tuesday, 13 December 2016 16:49:01 UTC, Derek Bruening wrote:
>
> On Tue, Dec 13, 2016 at 5:51 AM, <Edmund.Gri...@gmail.com <javascript:>> 
> wrote:
>
>> What sort of error message are you expecting in the case where "command"
>> (not containing '/') is not found? You say it should "list the path it
>> tried". Do you mean it should print out the value of PATH, or print out
>> every pathname it tried, based on PATH?
>>
>
> I just want it to print the string that was passed on the command line.  
> In some cases there are layers of scripts or variable expansions used that 
> make it non-trivial for the user to easily see the final string, in which 
> case having just "drrun: command not found." with no further information is 
> frustrating.  Additionally, some new users do not put in the -- separator, 
> have misspelled options, and things get mis-parsed with some option token 
> interpreted as the app.  Furthermore, on Windows there are UI actions such 
> as "drag-and-drop" of icons where it may not be clear what is taken as the 
> file to execute.  Printing the string taken to be the app often points 
> directly to the problem and saves time.  Lots of reasons to print it, and 
> no downside.
>

I agree. Even bash does that:

$ foo
bash: foo: command not found
$


Sign in to reply to this message.

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