Closed Bug 899875 Opened 11 years ago Closed 11 years ago

pymake doesn't pass quoted empty args to command

Categories

(Firefox Build System :: General, defect)

x86_64
Windows 8
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla25

People

(Reporter: vlad, Assigned: glandium)

Details

Attachments

(1 file, 2 obsolete files)

Given the Makefile:

all:
        bash -c 'echo $$#' -- a b "" c

On Win32, GNU make correctly prints 4, pymake prints 3.  The "" is not properly passed to the command.
Attached patch handle empty arguments (obsolete) — Splinter Review
relatively easy fix, with test.
Assignee: nobody → vladimir
Attachment #783531 - Flags: review?(benjamin)
Assignee: vladimir → mh+mozilla
Comment on attachment 783531 [details] [diff] [review]
handle empty arguments

Sorry to have hijacked it. I didn't see you had a patch when I bzexported. As having written that particular code, i prefer my patch ;)
Attachment #783531 - Attachment is obsolete: true
Attachment #783531 - Flags: review?(benjamin)
Yup, don't care, as long as it works! :)  My patch had a test though, should probably add that one in.
Added vlad's test (using posix = instead of bashism ==, and adding some more whitespaces that should be treated correctly)
Attachment #783561 - Flags: review?(ted)
Attachment #783553 - Attachment is obsolete: true
Attachment #783553 - Flags: review?(ted)
Attachment #783561 - Flags: review?(ted) → review+
https://hg.mozilla.org/mozilla-central/rev/2cc4a6f5d35a
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: