Open Bug 682867 Opened 14 years ago Updated 3 years ago

Builtin native commands should fall back to the shell if shell metacharacters are present

Categories

(Firefox Build System :: General, defect)

8 Branch
defect

Tracking

(Not tracked)

People

(Reporter: khuey, Unassigned)

Details

Attachments

(1 file)

Attached patch PatchSplinter Review
I haven't actually tested this but it should work. For actual native commands we'll just die in the shell; I think that's ok.
Attachment #556579 - Flags: review?(ted.mielczarek)
Comment on attachment 556579 [details] [diff] [review] Patch Review of attachment 556579 [details] [diff] [review]: ----------------------------------------------------------------- ::: pymake/data.py @@ +1230,5 @@ > + loc=c.loc, context=makefile.context, > + echo=echo, justprint=makefile.justprint, > + pycommandpath=e) > + except NeedsFullShellError: > + isNative = False This will just fail in a different way, since even things like $(RM) are "pymake.builtins rm". We need a better solution.
Attachment #556579 - Flags: review?(ted.mielczarek) → review-
Yeah, this won't work then. As I said on IRC though, it really sucks that $(RM) isn't safe to use in shell expressions in pymake.
Assignee: khuey → nobody
Status: ASSIGNED → NEW
Product: Core → Firefox Build System
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: