Closed
Bug 579862
Opened 15 years ago
Closed 15 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•15 years ago
|
||
Attachment #458304 -
Flags: review?(ted.mielczarek)
Comment 2•15 years ago
|
||
Comment on attachment 458304 [details] [diff] [review]
Possible patch
I...don't actually know what this does.
Assignee | ||
Comment 3•15 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•15 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•15 years ago
|
Assignee: nobody → neil
Assignee | ||
Comment 5•15 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•15 years ago
|
||
Comment on attachment 458304 [details] [diff] [review]
Possible patch
Okay.
Attachment #458304 -
Flags: review?(ted.mielczarek) → review+
Assignee | ||
Updated•15 years ago
|
Keywords: checkin-needed
Comment 7•15 years ago
|
||
Updated•2 years ago
|
Product: mozilla.org → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•