Closed
Bug 579862
Opened 14 years ago
Closed 14 years ago
Consider using SETLOCAL in start-*.bat
Categories
(Firefox Build System :: MozillaBuild, task)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: neil, Assigned: neil)
Details
Attachments
(1 file)
2.39 KB,
patch
|
ted
:
review+
|
Details | Diff | Splinter Review |
So that you don't pollute the parent command prompt's environment. [guess-msvc.bat gets confused if you run it twice]
Assignee | ||
Comment 1•14 years ago
|
||
Attachment #458304 -
Flags: review?(ted.mielczarek)
Comment 2•14 years ago
|
||
Comment on attachment 458304 [details] [diff] [review] Possible patch I...don't actually know what this does.
Assignee | ||
Comment 3•14 years ago
|
||
C:\>SETLOCAL /? Begins localization of environment changes in a batch file. Environment changes made after SETLOCAL has been issued are local to the batch file. ENDLOCAL must be issued to restore the previous settings. When the end of a batch script is reached, an implied ENDLOCAL is executed for any outstanding SETLOCAL commands issued by that batch script.
Comment 4•14 years ago
|
||
With bug 579860, does this mean that none of the variables set in the start-msvc* batch files will persist into the bash environment? Or do they make it there, and just not afterwards if you run it from a command prompt?
Updated•14 years ago
|
Assignee: nobody → neil
Assignee | ||
Comment 5•14 years ago
|
||
SETLOCAL only affects the calling command prompt. Applications run with or without start inherit environment variables from the batch file as normal.
Comment 6•14 years ago
|
||
Comment on attachment 458304 [details] [diff] [review] Possible patch Okay.
Attachment #458304 -
Flags: review?(ted.mielczarek) → review+
Assignee | ||
Updated•14 years ago
|
Keywords: checkin-needed
Comment 7•14 years ago
|
||
http://hg.mozilla.org/mozilla-build/rev/a9eac499f12e
Updated•1 year ago
|
Product: mozilla.org → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•